def Context.continue_or_start
import bend-trace-context@0.2.0.0/generation.bend as Generationimport Base
import bend-trace-context@0.2.0.0/trace_context.bend as TC
73# Give a service its own operation for a received message: a child of the
74# context that extraction keeps, the message's or the base, a root without
75# one, or a new trace in its place at a trust boundary
76# (TC.Context.continue_or_start_with).
77def Context.continue_or_start(+extraction: TC.Extraction, reception: TC.Reception, sampling: TC.Sampling,
78 +policy: TC.FailurePolicy) -> IO(TC.FailurePolicy.result(policy, TC.Service)):
79 on_host(TC.FailurePolicy.result(policy, TC.Service),
80 TC.Context.continue_or_start_with(~Unit, ~Source.host, Unit{}, extraction, reception, sampling, policy))
Uses (11)
Used by (0)
No other definition uses this definition.