Interface InMemoryTraceStateFormat<C>
-
- Type Parameters:
C- the carrier type.
- All Superinterfaces:
io.opentracing.propagation.Format<C>
- All Known Implementing Classes:
SingleLineFormatter
public interface InMemoryTraceStateFormat<C> extends io.opentracing.propagation.Format<C>AFormatcompatible withInMemoryTraceState.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InMemoryTraceStateextract(C carrier)Extract the trace state from a carrier.voidinject(InMemoryTraceState state, C carrier)Inject a trace state into a carrier.
-
-
-
Method Detail
-
inject
void inject(InMemoryTraceState state, C carrier)
Inject a trace state into a carrier.- Parameters:
state- trace statecarrier- carrier to inject into
-
extract
@Nullable InMemoryTraceState extract(C carrier) throws java.lang.Exception
Extract the trace state from a carrier.- Parameters:
carrier- carrier to extract from- Returns:
- extracted trace state, may be
nullif the carrier doesn't contain a valid span - Throws:
java.lang.Exception- if any parsing error happened during extraction
-
-