Skip to content

Commit 4dc2e3e

Browse files
committed
add migration note
1 parent 540f3a7 commit 4dc2e3e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

MIGRATION.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ npx @sentry/migr8@latest
88

99
This will let you select which updates to run, and automatically update your code. Make sure to still review all code changes!
1010

11+
## Deprecate `addGlobalEventProcessor` in favor of `addEventProcessor`
12+
13+
Instead of using `addGlobalEventProcessor`, you should use `addEventProcessor` which does not add the event processor globally, but to the current client.
14+
15+
For the vast majority of cases, the behavior of these should be the same. Only in the case where you have multiple clients will this differ - but you'll likely want to add event processors per-client then anyhow, not globally.
16+
17+
In v8, we will remove the global event processors overall, as that allows us to avoid keeping global state that is not necessary.
18+
1119
## Deprecate `extractTraceParentData` export from `@sentry/core` & downstream packages
1220

1321
Instead, import this directly from `@sentry/utils`.

0 commit comments

Comments
 (0)