def Sampling.resolve
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
582# The sampled indication a child receives: the inherited one, unless the
583# caller set another (law sampling).
584def Sampling.resolve(sampling: Sampling, inherited: Bool) -> Bool:
585 match sampling:
586 case InheritSampled{}:
587 inherited
588 case SetSampled{sampled}:
589 sampled