def Sampling.resolve

bend-trace-context@0.2.0.0 · trace_context.bend:582

import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext
import 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

Uses (2)

Used by (3)