def SendPlan.new

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

import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext
import Base

3714# The plan of one message that the service sends (see SendPlan).
3715def SendPlan.new(limits: Limits, service: Service, sampling: Sampling, carrier: List<&2, Header>) -> SendPlan:
3716  match service:
3717    case Operating{origin, +outgoing, received}:
3718      SendChild{Generation.child(LocalParent{OutgoingContext.context(outgoing)}, sampling), limits, outgoing, received,
3719        carrier}
3720    case Untraced{error, received}:
3721      SendFallback{error, limits, received, carrier}

Uses (9)

Used by (1)