From f7c24760e27fdaf0f46522f321ed3931a83585b0 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Thu, 9 Jan 2025 11:47:10 +0000 Subject: [PATCH] Add migration docs --- docs/migration/v8-to-v9.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/migration/v8-to-v9.md b/docs/migration/v8-to-v9.md index 84e0526d102d..b81e9e98ef4a 100644 --- a/docs/migration/v8-to-v9.md +++ b/docs/migration/v8-to-v9.md @@ -88,6 +88,8 @@ In v9, an `undefined` value will be treated the same as if the value is not defi - 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. +- 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. + ### `@sentry/browser` - The `captureUserFeedback` method has been removed. Use `captureFeedback` instead and update the `comments` field to `message`.