Class MessagingSpanKindExtractor
java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.messaging.MessagingSpanKindExtractor
Selects messaging span kinds according to the configured semantic convention version.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanKindExtractor<REQUEST> create(MessageOperation operation) Deprecated.static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanKindExtractor<REQUEST> create(MessagingOperationType operationType) Returns a span kind extractor following the v1.43 messaging span kind conventions.static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanKindExtractor<REQUEST> create(MessagingOperationType operationType, Predicate<REQUEST> spanContextPropagated) Returns a span kind extractor following the v1.43 messaging span kind conventions.
-
Method Details
-
create
public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanKindExtractor<REQUEST> create(MessagingOperationType operationType) Returns a span kind extractor following the v1.43 messaging span kind conventions.MessagingOperationType.SENDspans are treated as propagating their span context as the message creation context; usecreate(MessagingOperationType, Predicate)when that varies per request. -
create
public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanKindExtractor<REQUEST> create(MessagingOperationType operationType, Predicate<REQUEST> spanContextPropagated) Returns a span kind extractor following the v1.43 messaging span kind conventions.- Parameters:
spanContextPropagated- tells whether the context of aMessagingOperationType.SENDspan is propagated as the message creation context; ignored for other operation types
-
create
@Deprecated public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanKindExtractor<REQUEST> create(MessageOperation operation) Deprecated.Usecreate(MessagingOperationType). May be removed in the next minor release.
-
create(MessagingOperationType).