You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f95be2
Browse filesBrowse the repository at this point in the historyBrowse files
fix(core): Record span client report outcomes when discarding transactions (#25006)
The [client report
spec](https://develop.sentry.dev/sdk/telemetry/client-reports/#span-outcomes)
calls for recording category `span` client outcomes, also if streaming
is disabled. This PR makes the change to record outcomes for each span,
including one for the transaction itself when a transaction is sampled
negatively, as well as when it's dropped.
The transaction/event processing pipeline had a bunch of holes for
discarded span counts, since any combination of `ignoreSpans`, event
processors and `beforeSendTransaction` could drop child spans in any of
those callbacks. So for example, a transaction that originally had 10
child spans and drops
- 2 spans in ignoreSpans
- 1 span in an event processor
- the whole transaction in beforeSendTransaction
now all together reports 11 `span`s and 1 `transaction` outcome, with
the correct reasons. No span drops are double-counted.
Related bugfix: Spans dropped by `ignoreSpans` without span streaming
are now recorded as `ignored` instead of `before_send`.
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/linked-traces-static/consistent-sampling/meta-negative/test.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,11 @@ sentryTest.describe('When `consistentTraceSampling` is `true` and page contains
Copy file name to clipboardExpand all lines: dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/linked-traces-static/consistent-sampling/meta-precedence/test.ts
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,11 @@ sentryTest.describe('When `consistentTraceSampling` is `true` and page contains
Copy file name to clipboardExpand all lines: dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/linked-traces-static/consistent-sampling/tracesSampler-precedence/test.ts
0 commit comments