Interface InMemorySpanContextExtractor<C>
- Type Parameters:
C
- the carrier type.
- All Known Subinterfaces:
InMemorySpanContextFormat<C>
- All Known Implementing Classes:
B3KeyValueFormatter
,SingleLineFormatter
public interface InMemorySpanContextExtractor<C>
Used to extract
InMemorySpanContext
from a carrier of type InMemorySpanContextExtractor
.-
Method Summary
Modifier and TypeMethodDescriptionExtract the trace state from a carrier.
-
Method Details
-
extract
Extract the trace state from a carrier.- Parameters:
carrier
- carrier to extract from- Returns:
- extracted
InMemorySpanContext
, may benull
if the carrier doesn't contain a valid span - Throws:
Exception
- if any parsing error happened during extraction
-