C
- the carrier type.public interface InMemoryTraceStateFormat<C>
extends io.opentracing.propagation.Format<C>
Format
compatible with InMemoryTraceState
.Modifier and Type | Method and Description |
---|---|
InMemoryTraceState |
extract(C carrier)
Extract the trace state from a carrier.
|
void |
inject(InMemoryTraceState state,
C carrier)
Inject a trace state into a carrier.
|
void inject(InMemoryTraceState state, C carrier)
state
- trace statecarrier
- carrier to inject into@Nullable InMemoryTraceState extract(C carrier) throws java.lang.Exception
carrier
- carrier to extract fromnull
if the carrier doesn't contain a valid spanjava.lang.Exception
- if any parsing error happened during extraction