Class EventPublishingContextWrapper
java.lang.Object
io.micrometer.tracing.otel.bridge.EventPublishingContextWrapper
- All Implemented Interfaces:
Function<io.opentelemetry.context.ContextStorage,
io.opentelemetry.context.ContextStorage>
public final class EventPublishingContextWrapper
extends Object
implements Function<io.opentelemetry.context.ContextStorage,io.opentelemetry.context.ContextStorage>
A context wrapper that publishes events when scope is being attached, closed or
restored.
- Since:
- 1.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An event with context attached.static class
Event related to closing a scope.static class
Event related to restoring a scope. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.context.ContextStorage
apply
(io.opentelemetry.context.ContextStorage contextStorage)
-
Constructor Details
-
EventPublishingContextWrapper
Creates a new instance ofEventPublishingContextWrapper
.- Parameters:
publisher
- an event publisher
-
-
Method Details