Commit 6b34ec4
fix(core): Check spanArguments.op before attributes for ignoreSpans
The _shouldIgnoreStreamedSpan function was only checking
spanArguments.attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP] for the op value,
but at this point in the flow, the op lives on spanArguments.op (set by
parseSentrySpanArguments which spreads StartSpanOptions). The
SEMANTIC_ATTRIBUTE_SENTRY_OP attribute is only populated later when the
SentrySpan constructor runs.
This caused any ignoreSpans pattern that filters by op (e.g.
{ op: 'http.server' }) to silently fail to match in the core/browser
streaming path. The OTel path correctly handles this by checking both:
options.op || options.attributes?.[SEMANTIC_ATTRIBUTE_SENTRY_OP].
This fix aligns the core path with the OTel implementation.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 6bca137 commit 6b34ec4
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
598 | 601 | | |
599 | 602 | | |
600 | 603 | | |
| |||
0 commit comments