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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.instrumentation.api.instrumenter.messaging.MessagingAttributesGetter<AmqpMessage<?>,
Void> void
onEnd
(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context context, AmqpMessage<?> amqpMessage, Void unused, Throwable error) void
onStart
(io.opentelemetry.api.common.AttributesBuilder attributes, io.opentelemetry.context.Context parentContext, AmqpMessage<?> amqpMessage)
-
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 interfaceio.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 interfaceio.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<AmqpMessage<?>,
Void>
-