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)!: Stop setting user in requestDataIntegration (#14898)
This was an express-specific, rather undocumented behavior, and also
conflicted with our privacy-by-default stance.
Starting in v9, you'll need to manually call `Sentry.setUser()` e.g. in
a middleware to set the user on Sentry events.
Docs for this are already pending:
getsentry/sentry-docs#12224
Extracted this out of
#14806
Copy file name to clipboardExpand all lines: docs/migration/v8-to-v9.md
+4
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,8 @@ In v9, an `undefined` value will be treated the same as if the value is not defi
84
84
85
85
- When `skipOpenTelemetrySetup: true` is configured, `httpIntegration({ spans: false })` will be configured by default. This means that you no longer have to specify this yourself in this scenario. With this change, no spans are emitted once `skipOpenTelemetrySetup: true` is configured, without any further configuration being needed.
86
86
87
+
- The `requestDataIntegration` will no longer automatically set the user from `request.user`. This is an express-specific, undocumented behavior, and also conflicts with our privacy-by-default strategy. Starting in v9, you'll need to manually call `Sentry.setUser()` e.g. in a middleware to set the user on Sentry events.
88
+
87
89
### `@sentry/browser`
88
90
89
91
- The `captureUserFeedback` method has been removed. Use `captureFeedback` instead and update the `comments` field to `message`.
@@ -128,6 +130,8 @@ Sentry.init({
128
130
});
129
131
```
130
132
133
+
- The `DEFAULT_USER_INCLUDES` constant has been removed.
134
+
131
135
### `@sentry/react`
132
136
133
137
- The `wrapUseRoutes` method has been removed. Use `wrapUseRoutesV6` or `wrapUseRoutesV7` instead depending on what version of react router you are using.
0 commit comments