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
Copy file name to clipboardExpand all lines: docs/migration/v8-to-v9.md
+2
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,8 @@ In v9, an `undefined` value will be treated the same as if the value is not defi
88
88
89
89
- 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.
90
90
91
+
- The `tracesSampler` hook will no longer be called for _every_ span. Instead, it will only be called for "root spans". Root spans are spans that have no local parent span. Root spans may however have incoming trace data from a different service, for example when using distributed tracing.
92
+
91
93
### `@sentry/browser`
92
94
93
95
- The `captureUserFeedback` method has been removed. Use `captureFeedback` instead and update the `comments` field to `message`.
// We check for `parentSampled === undefined` because we only want to record client reports for spans that are trace roots (ie. when there was incoming trace)
130
+
parentSampled===undefined
131
+
){
124
132
DEBUG_BUILD&&logger.log('[Tracing] Discarding root span because its trace was not chosen to be sampled.');
0 commit comments