Skip to content

Commit 92da0d7

Browse files
committed
messaging attributes
1 parent 4bcf529 commit 92da0d7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ public static <REQUEST, RESPONSE> MessagingAttributesExtractorBuilder<REQUEST, R
7777
}
7878

7979
private final MessagingAttributesGetter<REQUEST, RESPONSE> getter;
80-
@Nullable private final MessageOperation operation;
80+
private final MessageOperation operation;
8181
private final List<String> capturedHeaders;
8282

8383
MessagingAttributesExtractor(
8484
MessagingAttributesGetter<REQUEST, RESPONSE> getter,
85-
@Nullable MessageOperation operation,
85+
MessageOperation operation,
8686
List<String> capturedHeaders) {
8787
this.getter = getter;
8888
this.operation = operation;

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@
1212
import java.util.ArrayList;
1313
import java.util.Collection;
1414
import java.util.List;
15-
import javax.annotation.Nullable;
1615

1716
/** A builder of {@link MessagingAttributesExtractor}. */
1817
public final class MessagingAttributesExtractorBuilder<REQUEST, RESPONSE> {
1918

2019
final MessagingAttributesGetter<REQUEST, RESPONSE> getter;
21-
@Nullable final MessageOperation operation;
20+
final MessageOperation operation;
2221
List<String> capturedHeaders = emptyList();
2322

2423
MessagingAttributesExtractorBuilder(
25-
MessagingAttributesGetter<REQUEST, RESPONSE> getter, @Nullable MessageOperation operation) {
24+
MessagingAttributesGetter<REQUEST, RESPONSE> getter, MessageOperation operation) {
2625
this.getter = getter;
2726
this.operation = operation;
2827
}

0 commit comments

Comments
 (0)