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
feat(core): Deprecate beforeSendTransaction and ignoreTransactions and log warnings if used with streaming (#22908)
This PR:
1. Deprecates `beforeSendTransaction` and `ignoreTransactions`
2. Logs a console warning (intentionally not gated with `debug: true`)
to warn users if they use any of the two options with span streaming
enabled
I intentionally didn't update the migration guide. this is handled in
#22643.
more details in
#22856closes#22856closes#20279
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,8 @@ Uses **Git Flow** (see `docs/gitflow.md`).
134
134
- Never expose secrets or keys
135
135
- When modifying files, cover all occurrences (including `src/` and `test/`)
136
136
- Comments explain **why**, never **what** — never add a comment that restates what the code does or describes the change being made; only comment when the reasoning isn't obvious from the code itself
137
+
- Do not use `expect(someSpy.mock.calls[0]?.[0])` or similar constructs to check what a spy was called with.
138
+
Instead use `expect(someSpy).toHaveBeenCalledWith(...)` or derivatives for a more readable and less brittle test assertion.
"[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.",
0 commit comments