def NativeHttp.send
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
import bend-trace-context@0.2.0.0/native_http.bend as Adapter
100# Give one request that the service sends the context of a new operation, on
101# the host's cryptographic source: native_http.bend's send_with on
102# Source.host, which replaces the context fields of `headers`, the request's
103# own header map.
104def NativeHttp.send(+limits: TC.Limits, service: TC.Service, sampling: TC.Sampling, +policy: TC.FailurePolicy,
105 headers: Adapter.HeaderMap()) -> IO(TC.FailurePolicy.result(policy, Adapter.Outbound)):
106 on_host(TC.FailurePolicy.result(policy, Adapter.Outbound),
107 Adapter.send_with(~Unit, ~Source.host, Unit{}, limits, service, sampling, policy, headers))
Uses (12)
Used by (0)
No other definition uses this definition.