Skip to content

Commit

Permalink
meta: Backfill v9 migration guide items (#14459)
Browse files Browse the repository at this point in the history
Backfills items to the draft migration guide for v9 that we missed

- #14433
- #14454
  • Loading branch information
lforst authored Nov 26, 2024
1 parent 91a4985 commit cf368b1
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docs/migration/draft-v9-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@

## General

- **Returning `null` from `beforeSendSpan` span is deprecated.**
- **Passing `undefined` to `tracesSampleRate` / `tracesSampler` / `enableTracing` will be handled differently in v9**

In v8, a setup like the following:
In v8, a setup like the following:

```ts
Sentry.init({
tracesSampleRate: undefined,
});
```
```ts
Sentry.init({
tracesSampleRate: undefined,
});
```

Will result in tracing being _enabled_, although no spans will be generated.
In v9, we will streamline this behavior so that passing `undefined` will result in tracing being disabled, the same as not passing the option at all.
If you are relying on `undefined` being passed in and having tracing enabled because of this, you should update your config to set e.g. `tracesSampleRate: 0` instead, which will also enable tracing in v9.
Will result in tracing being _enabled_, although no spans will be generated.
In v9, we will streamline this behavior so that passing `undefined` will result in tracing being disabled, the same as not passing the option at all.
If you are relying on `undefined` being passed in and having tracing enabled because of this, you should update your config to set e.g. `tracesSampleRate: 0` instead, which will also enable tracing in v9.

## `@sentry/utils`

Expand Down

0 comments on commit cf368b1

Please sign in to comment.