Class ReactiveMessagingTracingOutgoingDecorator

java.lang.Object
io.quarkus.opentelemetry.runtime.tracing.instrumentation.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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      decorate in interface io.smallrye.reactive.messaging.SubscriberDecorator