def IncomingContext.from_remote

bend-trace-context@0.2.0.0 · trace_context.bend:3119

import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext
import Base

3119# An incoming context from its parts: a remote context and the tracestate
3120# that goes with it, so that an OpenTelemetry SDK's remote span contexts have
3121# one shape whatever format they came from. No message's fields were
3122# accepted, so it keeps no received pair, and Context.forward refuses it with
3123# NothingToForward (laws incoming_from_remote and forward_from_parts). A
3124# child continues it as any incoming context.
3125def IncomingContext.from_remote(context: RemoteContext, state: TraceState) -> IncomingContext:
3126  IncomingContext{context, state, None{}}

Uses (4)

Used by (0)

No other definition uses this definition.