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): Add client.init() to replace client.setupIntegrations() (#10118)
This adds a new `client.init()` method to be called instead of
`client.setupIntegrations()`.
Note that this method simply initializes the integrations always, and
depends on the check that we don't add integrations multiple times.
This also has a bit of a different semantic, dropping the `force`
argument in favor of just calling `addIntegration()` again - this
depends on #10116 to
really work.
Copy file name to clipboardExpand all lines: MIGRATION.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,10 @@ If you are using the `Hub` right now, see the following table on how to migrate
64
64
| endSession() |`Sentry.endSession()`|
65
65
| shouldSendDefaultPii() | REMOVED - The closest equivalent is `Sentry.getClient().getOptions().sendDefaultPii`|
66
66
67
+
## Deprecate `client.setupIntegrations()`
68
+
69
+
Instead, use the new `client.init()` method. You should probably not use this directly and instead use `Sentry.init()`, which calls this under the hood. But if you have a special use case that requires that, you can call `client.init()` instead now.
70
+
67
71
## Deprecate `scope.getSpan()` and `scope.setSpan()`
68
72
69
73
Instead, you can get the currently active span via `Sentry.getActiveSpan()`. Setting a span on the scope happens
0 commit comments