Class ReactiveMessagingTracingOutgoingDecorator
java.lang.Object
io.quarkus.opentelemetry.runtime.tracing.intrumentation.reactivemessaging.ReactiveMessagingTracingOutgoingDecorator
- All Implemented Interfaces:
io.smallrye.reactive.messaging.SubscriberDecorator,jakarta.enterprise.inject.spi.Prioritized
@ApplicationScoped
public class ReactiveMessagingTracingOutgoingDecorator
extends Object
implements io.smallrye.reactive.messaging.SubscriberDecorator
Intercepts outgoing messages from Reactive Messaging connectors.
For outgoing messages, if the message doesn't already contain a tracing metadata, it attaches one with the current OpenTelemetry context. Reactive messaging outbound connectors, if tracing is supported, will use that context as parent span to trace outbound message transmission.
-
Field Summary
Fields inherited from interface io.smallrye.reactive.messaging.SubscriberDecorator
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Multi<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> decorate(io.smallrye.mutiny.Multi<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> toBeSubscribed, List<String> channelName, boolean isConnector) Outgoing messagesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.reactive.messaging.SubscriberDecorator
getPriority
-
Constructor Details
-
ReactiveMessagingTracingOutgoingDecorator
public ReactiveMessagingTracingOutgoingDecorator()
-
-
Method Details
-
decorate
public io.smallrye.mutiny.Multi<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> decorate(io.smallrye.mutiny.Multi<? extends org.eclipse.microprofile.reactive.messaging.Message<?>> toBeSubscribed, List<String> channelName, boolean isConnector) Outgoing messages- Specified by:
decoratein interfaceio.smallrye.reactive.messaging.SubscriberDecorator
-