def TraceId.to_string

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

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

554# The 32 lowercase hexadecimal digits of the trace ID.
555def TraceId.to_string(id: TraceId) -> String:
556  match id:
557    case TraceId{value, random}:
558      Digits.NonZero.to_string(32n, value)

Uses (3)

Used by (1)