TraceContext.Serve.new_trace_sampled: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext Lines 3498-3506 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=3498&end_line=3506 import Base # The sampled indication of the new trace, a root or a restart, that # Context.continue_or_start_with starts: the one that `sampling` resolves # from the default, not sampled (spec #1, "New roots default to sampled # `0`"). InheritSampled{} has nothing to inherit, and SetSampled{} sets its # own. The default lives here: root and restart generation take the # indication that they are given (spec #41, "Sampling decision when starting # a trace"). def Serve.new_trace_sampled(sampling: Sampling) -> Bool: Sampling.resolve(sampling, False{}) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Sampling https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/trace_context.bend&name=Sampling.resolve