def TraceParentOutcome.show

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

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

3168# The name of a traceparent outcome; a rejection adds its error.
3169def TraceParentOutcome.show(outcome: TraceParentOutcome) -> String:
3170  match outcome:
3171    case TraceParentAccepted{}:
3172      "TraceParentAccepted"
3173    case TraceParentAbsent{}:
3174      "TraceParentAbsent"
3175    case TraceParentRejected{error}:
3176      "TraceParentRejected " ++ TraceParentError.show(error)

Uses (4)

Used by (1)