def Flags.known
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
630# The known trace flags as a number: `sampled` in bit 0 and `random` in bit 1
631# (W3C 3.2.2.5), with the six reserved bits zero.
632def Flags.known(sampled: Bool, random: Bool) -> U32:
633 U32.or(Bool.to_u32(sampled), U32.shl(Bool.to_u32(random)))