Skip to content

Commit 8fab4e6

Browse files
committed
add nullaway
1 parent dbaf8f3 commit 8fab4e6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/DbClientCommonAttributesGetter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
package io.opentelemetry.instrumentation.api.incubator.semconv.db;
77

8+
import static java.util.Objects.requireNonNull;
9+
810
import javax.annotation.Nullable;
911

1012
/** An interface for getting attributes common to database clients. */

instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/db/SqlClientAttributesGetter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ default Collection<String> getRawQueryTexts(REQUEST request) {
4040
}
4141

4242
// TODO: make this required to implement
43+
@Nullable
4344
default Long getBatchSize(REQUEST request) {
4445
return null;
4546
}

0 commit comments

Comments
 (0)