Skip to content

Commit 2ba6c5d

Browse files
dougqhclaude
andcommitted
Restore @nullable on SpanSnapshot nullable-field constructor params
The httpMethod/httpEndpoint/grpcStatusCode/additionalTagValues fields are @nullable but their constructor params weren't, disagreeing with the already-annotated peerTagSchema/peerTagValues params. Annotation-only; no behavior change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 764277e commit 2ba6c5d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

dd-trace-core/src/main/java/datadog/trace/common/metrics/SpanSnapshot.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ final class SpanSnapshot implements InboxItem {
6363
String spanKind,
6464
@Nullable PeerTagSchema peerTagSchema,
6565
@Nullable String[] peerTagValues,
66-
String httpMethod,
67-
String httpEndpoint,
68-
String grpcStatusCode,
69-
String[] additionalTagValues,
66+
@Nullable String httpMethod,
67+
@Nullable String httpEndpoint,
68+
@Nullable String grpcStatusCode,
69+
@Nullable String[] additionalTagValues,
7070
long tagAndDuration) {
7171
this.resourceName = resourceName;
7272
this.serviceName = serviceName;

0 commit comments

Comments
 (0)