def TraceId.assert_random
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
540# Record the caller's assertion that these digits were generated randomly, so
541# that the random-trace-id flag is emitted with them. The caller is responsible
542# for the assertion; validation cannot establish it (law assert_random).
543def TraceId.assert_random(id: TraceId) -> TraceId:
544 match id:
545 case TraceId{value, random}:
546 TraceId{value, True{}}