def OutgoingContext.emit

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

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

2569# The traceparent and tracestate values to send: the participating
2570# traceparent of the context, and the normalized value of the state
2571# truncated to the output budget of `limits` (laws emit_traceparent,
2572# emit_tracestate, emit_fits and emit_accepted).
2573def OutgoingContext.emit(limits: Limits, outgoing: OutgoingContext) -> Emission:
2574  match outgoing:
2575    case OutgoingContext{context, state}:
2576      Emission.of(context, TraceState.truncate(limits, state))

Uses (5)

Used by (1)