Class OpenTelemetryDataPropagationProvider
java.lang.Object
io.helidon.tracing.providers.opentelemetry.OpenTelemetryDataPropagationProvider
- All Implemented Interfaces:
DataPropagationProvider<OpenTelemetryDataPropagationProvider.OpenTelemetryContext>
- Direct Known Subclasses:
JaegerDataPropagationProvider
public class OpenTelemetryDataPropagationProvider
extends Object
implements DataPropagationProvider<OpenTelemetryDataPropagationProvider.OpenTelemetryContext>
A data propagation provider for OpenTelemetry which makes sure active spans are properly propagated
across threads managed by
ContextAwareExecutorService
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
OpenTelemetry context. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the propagated data from the new thread when it finishes.data()
Return data that should be propagated.void
Propagates the data to be used by the new thread.
-
Constructor Details
-
OpenTelemetryDataPropagationProvider
public OpenTelemetryDataPropagationProvider()
-
-
Method Details
-
data
Description copied from interface:DataPropagationProvider
Return data that should be propagated.- Specified by:
data
in interfaceDataPropagationProvider<OpenTelemetryDataPropagationProvider.OpenTelemetryContext>
- Returns:
- data for propagation
-
clearData
Description copied from interface:DataPropagationProvider
Clears the propagated data from the new thread when it finishes.- Specified by:
clearData
in interfaceDataPropagationProvider<OpenTelemetryDataPropagationProvider.OpenTelemetryContext>
- Parameters:
context
- data for propagation
-
propagateData
Description copied from interface:DataPropagationProvider
Propagates the data to be used by the new thread.- Specified by:
propagateData
in interfaceDataPropagationProvider<OpenTelemetryDataPropagationProvider.OpenTelemetryContext>
- Parameters:
context
- data for propagation
-