def NativeHttp.continue_or_start

bend-trace-context@0.2.0.0 · generation.bend:90

import bend-trace-context@0.2.0.0/generation.bend as Generation
import Base
import bend-trace-context@0.2.0.0/trace_context.bend as TC
import bend-trace-context@0.2.0.0/native_http.bend as Adapter

90# The service's own operation for a received request, from the header map of
91# the request, on the host's cryptographic source: native_http.bend's
92# continue_or_start_with on Source.host. `base` is the context to keep when
93# the request carries no usable traceparent.
94def NativeHttp.continue_or_start(+limits: TC.Limits, headers: Adapter.HeaderMap(), base: Maybe<&2, TC.BaseContext>,
95  reception: TC.Reception, sampling: TC.Sampling, +policy: TC.FailurePolicy) ->
96  IO(TC.FailurePolicy.result(policy, TC.Service)):
97  on_host(TC.FailurePolicy.result(policy, TC.Service),
98    Adapter.continue_or_start_with(~Unit, ~Source.host, Unit{}, limits, headers, base, reception, sampling, policy))

Uses (14)

Used by (0)

No other definition uses this definition.