Method InjectTraceContext<TCarrier>(Activity?, TCarrier, TraceHeaderWriter<TCarrier>)
Writes the trace context of activity — or, without one, of the ambient activity — to an
outgoing message: traceparent, tracestate and the baggage, through the process's
. A context the route received is passed on even with tracing off,
so a redb hop does not cut the trace of the systems around it. Writes nothing when there is no context.
public static void InjectTraceContext<TCarrier>(Activity? activity, TCarrier carrier, TraceHeaderWriter<TCarrier> writeHeader)