クラス OpenTelemetryEventPublisherBeansApplicationListener
java.lang.ObjectSE
org.springframework.boot.micrometer.tracing.opentelemetry.autoconfigure.OpenTelemetryEventPublisherBeansApplicationListener
- 実装されているすべてのインターフェース:
EventListenerSE, ApplicationListener<ApplicationEvent>, GenericApplicationListener, SmartApplicationListener, Ordered
public class OpenTelemetryEventPublisherBeansApplicationListener
extends ObjectSE
implements GenericApplicationListener
ApplicationListener は、OtelTracer.EventPublisher Bean サポート用の OpenTelemetry ContextStorage ラッパーを追加します。ApplicationStartingEvent に単一の ContextStorage ラッパーが追加され、必要に応じて OtelTracer.EventPublisher Bean で更新されます。ApplicationStartingEvent が十分に早く呼び出されなかったり、起動されなかったりした場合は、addWrapper() メソッドが直接呼び出されることもあります。
- 導入:
- 4.0.0
- 作成者:
- Phillip Webb
- 関連事項:
フィールドのサマリー
インターフェース Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明static voidAddはContextStorageラッパーを使用して、EventPublishersが正しく伝播されるようにします。intgetOrder()voidbooleansupportsEventType(ResolvableType eventType) クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース ApplicationListener から継承されたメソッド
supportsAsyncExecutionインターフェース GenericApplicationListener から継承されたメソッド
supportsEventTypeインターフェース SmartApplicationListener から継承されたメソッド
getListenerId, supportsSourceType
コンストラクターの詳細
OpenTelemetryEventPublisherBeansApplicationListener
public OpenTelemetryEventPublisherBeansApplicationListener()
メソッドの詳細
getOrder
public int getOrder()- 次で指定:
- インターフェース
OrderedのgetOrder - 次で指定:
- インターフェース
SmartApplicationListenerのgetOrder
supportsEventType
- 次で指定:
- インターフェース
GenericApplicationListenerのsupportsEventType
onApplicationEvent
- 次で指定:
- インターフェース
ApplicationListener<ApplicationEvent>のonApplicationEvent
addWrapper
public static void addWrapper()AddはContextStorageラッパーを使用して、EventPublishersが正しく伝播されるようにします。