Module io.helidon.tracing.jaeger
Package io.helidon.tracing.jaeger
Class JaegerDataPropagationProvider
java.lang.Object
io.helidon.tracing.jaeger.JaegerDataPropagationProvider
- All Implemented Interfaces:
DataPropagationProvider<io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext>
public class JaegerDataPropagationProvider
extends Object
implements DataPropagationProvider<io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext>
A data propagation provider for Jaeger. Makes sure span are properly propagated
across threads managed by
ContextAwareExecutorService
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearData
(io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext context) Closes scope in secondary thread.io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext
data()
Closes scope in primary thread and returns a context to activate new scope in secondary thread.void
propagateData
(io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext context) Activates scope in secondary thread.
-
Constructor Details
-
JaegerDataPropagationProvider
public JaegerDataPropagationProvider()
-
-
Method Details
-
data
public io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext data()Closes scope in primary thread and returns a context to activate new scope in secondary thread.- Specified by:
data
in interfaceDataPropagationProvider<io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext>
- Returns:
- active span.
-
propagateData
public void propagateData(io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext context) Activates scope in secondary thread.- Specified by:
propagateData
in interfaceDataPropagationProvider<io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext>
- Parameters:
context
- the context.
-
clearData
public void clearData(io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext context) Closes scope in secondary thread.- Specified by:
clearData
in interfaceDataPropagationProvider<io.helidon.tracing.jaeger.JaegerDataPropagationProvider.JaegerContext>
- Parameters:
context
- data for propagation
-