Interface TraceContext.Extractor<C>

Enclosing class:
TraceContext

public static interface TraceContext.Extractor<C>
Used to continue an incoming trace. For example, by reading http headers.
See Also:
Tracer.nextSpan(TraceContextOrSamplingFlags)
  • Method Summary

    Modifier and Type Method Description
    TraceContextOrSamplingFlags extract​(C carrier)
    Returns either a trace context or sampling flags parsed from the carrier.
  • Method Details

    • extract

      TraceContextOrSamplingFlags extract​(C carrier)
      Returns either a trace context or sampling flags parsed from the carrier. If nothing was parsable, sampling flags will be set to SamplingFlags.EMPTY.
      Parameters:
      carrier - holds propagation fields. For example, an incoming message or http request.