Class AmqpAttributesExtractor

java.lang.Object
io.smallrye.reactive.messaging.amqp.tracing.AmqpAttributesExtractor
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<AmqpMessage<?>,Void>

public class AmqpAttributesExtractor extends Object implements io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<AmqpMessage<?>,Void>
  • Constructor Details

    • AmqpAttributesExtractor

      public AmqpAttributesExtractor()
  • Method Details

    • getMessagingAttributesGetter

      public io.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<AmqpMessage<?>,Void> getMessagingAttributesGetter()
    • onStart

      public void onStart(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, AmqpMessage<?> amqpMessage)
      Specified by:
      onStart in interface io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<AmqpMessage<?>,Void>
    • onEnd

      public void onEnd(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, AmqpMessage<?> amqpMessage, Void unused, Throwable error)
      Specified by:
      onEnd in interface io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<AmqpMessage<?>,Void>