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 byContextAwareExecutorService
.
-
-
Constructor Summary
Constructors Constructor Description JaegerDataPropagationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.common.context.spi.DataPropagationProvider
clearData
-
-
-
-
Method Detail
-
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
-
-