TraceContext.Flags.known: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 630-633 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=630&end_line=633 import Base # The known trace flags as a number: `sampled` in bit 0 and `random` in bit 1 # (W3C 3.2.2.5), with the six reserved bits zero. def Flags.known(sampled: Bool, random: Bool) -> U32: U32.or(Bool.to_u32(sampled), U32.shl(Bool.to_u32(random))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.to_u32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.or https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shl