Class OpenTelemetryEventPublisherBeansApplicationListener

java.lang.Object
org.springframework.boot.actuate.autoconfigure.tracing.OpenTelemetryEventPublisherBeansApplicationListener
All Implemented Interfaces:
EventListener, ApplicationListener<ApplicationEvent>, GenericApplicationListener, SmartApplicationListener, Ordered

public class OpenTelemetryEventPublisherBeansApplicationListener extends Object implements GenericApplicationListener
ApplicationListener to add an OpenTelemetry ContextStorage wrapper for OtelTracer.EventPublisher bean support. A single ContextStorage wrapper is added on the ApplicationStartingEvent then updated with OtelTracer.EventPublisher beans as needed.

The addWrapper() method may also be called directly if the ApplicationStartingEvent isn't called early enough or isn't fired.

Since:
3.4.0
Author:
Phillip Webb
See Also: