def Serve.new_trace_sampled
import bend-trace-context@0.2.0.0/trace_context.bend as TraceContextimport Base
3498# The sampled indication of the new trace, a root or a restart, that
3499# Context.continue_or_start_with starts: the one that `sampling` resolves
3500# from the default, not sampled (spec #1, "New roots default to sampled
3501# `0`"). InheritSampled{} has nothing to inherit, and SetSampled{} sets its
3502# own. The default lives here: root and restart generation take the
3503# indication that they are given (spec #41, "Sampling decision when starting
3504# a trace").
3505def Serve.new_trace_sampled(sampling: Sampling) -> Bool:
3506 Sampling.resolve(sampling, False{})