def SpanId.to_bytes
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
import bend-trace-context@0.2.0.0/src/digits.bend as Digits
900# The 8 bytes of the span ID, most significant first (laws span_bytes,
901# span_bytes_roundtrip and span_bytes_injective).
902def SpanId.to_bytes(id: SpanId) -> List<&2, U32>:
903 match id:
904 case SpanId{value}:
905 Digits.Digits.to_bytes(8n, Digits.NonZero.digits(16n, value))
Uses (5)
Used by (0)
No other definition uses this definition.