Skip to content

Commit 19c9599

Browse files
adinauerclaude
andcommitted
ref(tracing): Use span kind constant for filtering
Use the shared server span-kind value when identifying server transactions for HTTP status filtering. Refs #4735 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 316b324 commit 19c9599

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sentry/src/main/java/io/sentry/SentryClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ public void captureSession(final @NotNull Session session, final @Nullable Hint
11301130

11311131
final @Nullable SpanContext trace = transaction.getContexts().getTrace();
11321132
if (trace == null
1133-
|| !"server".equals(trace.getData().get(SpanDataConvention.SENTRY_KIND_KEY))) {
1133+
|| !SentrySpanKind.SERVER.equals(trace.getData().get(SpanDataConvention.SENTRY_KIND_KEY))) {
11341134
return null;
11351135
}
11361136

0 commit comments

Comments
 (0)