-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(deno): Avoid inferring invalid span op from Deno tracer #20128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,6 @@ test('Sends transaction with OTel tracer.startSpan despite pre-existing provider | |
| expect.arrayContaining([ | ||
| expect.objectContaining({ | ||
| description: 'test-otel-span', | ||
| op: 'otel.span', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tests don't assert absence of
|
||
| origin: 'manual', | ||
| }), | ||
| ]), | ||
|
|
@@ -53,7 +52,6 @@ test('Sends transaction with OTel tracer.startActiveSpan', async ({ baseURL }) = | |
| expect.arrayContaining([ | ||
| expect.objectContaining({ | ||
| description: 'test-otel-active-span', | ||
| op: 'otel.span', | ||
| origin: 'manual', | ||
| }), | ||
| ]), | ||
|
|
@@ -77,7 +75,6 @@ test('OTel span appears as child of Sentry span (interop)', async ({ baseURL }) | |
| }), | ||
| expect.objectContaining({ | ||
| description: 'otel-child', | ||
| op: 'otel.span', | ||
| origin: 'manual', | ||
| }), | ||
| ]), | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overly broad filter makes AI test trivially pass
Medium Severity
The
!span.opcondition in the AI span filter is far too broad — it matches any span without anop, not just AI-related OTel spans. The previous conditionspan.op === 'otel.span'was specific to spans coming from the custom OTel tracer, but!span.opwill match any span in the transaction that happens to lack anop. Combined with the assertionexpect(aiSpans.length).toBeGreaterThanOrEqual(1), this means the test can trivially pass even if no AI spans are actually created.Reviewed by Cursor Bugbot for commit 00ff5b5. Configure here.