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