def OutgoingContext.emit
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport 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))