Class MessagingSpanNameExtractor<REQUEST>
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.messaging.MessagingSpanNameExtractor<REQUEST>
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>
public final class MessagingSpanNameExtractor<REQUEST>
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST> create(MessagingAttributesGetter<REQUEST, ?> getter, MessageOperation operation) Deprecated.static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST> create(MessagingAttributesGetter<REQUEST, ?> getter, MessagingOperationType operationType, String operationName) Returns aSpanNameExtractorthat constructs the span name according to messaging semantic conventions.
-
Method Details
-
create
public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST> create(MessagingAttributesGetter<REQUEST, ?> getter, MessagingOperationType operationType, String operationName) Returns aSpanNameExtractorthat constructs the span name according to messaging semantic conventions.- Parameters:
operationName- the system-specific name of the operation, used as the<operation name>part of the span name, e.g.send,pollorack.- See Also:
-
create
@Deprecated public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST> create(MessagingAttributesGetter<REQUEST, ?> getter, MessageOperation operation) Deprecated.Usecreate(MessagingAttributesGetter, MessagingOperationType, String). May be removed in the next minor release. -
extract
- Specified by:
extractin interfaceio.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>
-
create(MessagingAttributesGetter, MessagingOperationType, String).