Skip to content

Commit 3ecd05d

Browse files
committed
Update MessagingSpanNameExtractor javadoc
1 parent 138cce0 commit 3ecd05d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/messaging/MessagingSpanNameExtractor.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ public final class MessagingSpanNameExtractor<REQUEST> implements SpanNameExtrac
1515
/**
1616
* Returns a {@link SpanNameExtractor} that constructs the span name according to <a
1717
* href="https://github.com/open-telemetry/semantic-conventions/blob/main/docs/messaging/messaging-spans.md#span-name">
18-
* messaging semantic conventions</a>: {@code <destination name> <operation name>}.
18+
* messaging semantic conventions</a>: {@code <operation name> <destination name> }.
1919
*
20-
* @see MessagingAttributesGetter#getDestination(Object) used to extract {@code <destination
21-
* name>}.
22-
* @see MessageOperation used to extract {@code <operation name>}.
20+
* @see MessagingAttributesGetter#getDestination(Object) used to extract {@code <operation name>}
21+
* and {@code <destination name>}.
22+
* @see MessageOperation used to extract {@code <operation name>} (backwards compatibility with
23+
* old conventions).
24+
* @see ServerAttributesGetter used to extract data for {@code <destination name>}
2325
*/
2426
public static <REQUEST> SpanNameExtractor<REQUEST> create(
2527
MessagingAttributesGetter<REQUEST, ?> getter,

0 commit comments

Comments
 (0)