inject abstract method

void inject(
  1. SpanContext spanContext,
  2. String format,
  3. dynamic carrier
)

Injects the given SpanContext instance for cross-process propagation within carrier. The expected type of carrier depends on the value of `format.

OpenTracing defines a common set of format values (see formatTextMap, formatHttpHeaders, and formatBinary), and each has an expected carrier type.

Implementation

void inject(SpanContext spanContext, String format, dynamic carrier);