def TraceParentError.show

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

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

3158# The name of a traceparent error; InvalidTraceParent adds the codec's error.
3159def TraceParentError.show(error: TraceParentError) -> String:
3160  match error:
3161    case RepeatedTraceParent{}:
3162      "RepeatedTraceParent"
3163    case TraceParentTooLarge{}:
3164      "TraceParentTooLarge"
3165    case InvalidTraceParent{reason}:
3166      "InvalidTraceParent " ++ Error.show(reason)

Uses (4)

Used by (2)