Package brave.propagation
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.
-
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
Returns either a trace context or sampling flags parsed from the carrier. If nothing was parsable, sampling flags will be set toSamplingFlags.EMPTY
.- Parameters:
carrier
- holds propagation fields. For example, an incoming message or http request.
-