TraceContext.TraceId.assert_random: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 540-546 of bend-trace-context@0.2.0.0/trace_context.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&start_line=540&end_line=546 import Base # Record the caller's assertion that these digits were generated randomly, so # that the random-trace-id flag is emitted with them. The caller is responsible # for the assertion; validation cannot establish it (law assert_random). def TraceId.assert_random(id: TraceId) -> TraceId: match id: case TraceId{value, random}: TraceId{value, True{}} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=TraceId