OpenTelemetry.Context.Propagation.TextMapPropagator
Defines an interface for a Propagator of TextMap type,
which uses string key/value pairs to inject and extract
propagation data.
Gets the list of headers used by propagator. The use cases of this are:
* allow pre-allocation of fields, especially in systems like gRPC Metadata
* allow a single-pass over an iterator (ex OpenTracing has no getter in TextMap).
protected TextMapPropagator()
public abstract PropagationContext Extract<T>(PropagationContext context, T carrier, Func<T, string, IEnumerable<string>> getter)
Extracts the context from a carrier.
public abstract void Inject<T>(PropagationContext context, T carrier, Action<T, string, string> setter)
Injects the context into a carrier.