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)!: Update hasTracingEnabled to consider empty trace config (#14857)
This PR updates the behavior of passing `undefined` to
`tracesSampleRate` (or `enabledTracing`). now, this will _not_ trigger
TWP, but tracing will be disabled. If you really want TWP, you need to
configure `tracesSampleRate: 0`.
Closes#13262
Copy file name to clipboardExpand all lines: docs/migration/v8-to-v9.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,16 @@ Sentry.init({
68
68
});
69
69
```
70
70
71
+
- In previous versions, we determined if tracing is enabled (for Tracing Without Performance) by checking if either `tracesSampleRate` or `traceSampler` are _defined_ at all, in `Sentry.init()`. This means that e.g. the following config would lead to tracing without performance (=tracing being enabled, even if no spans would be started):
72
+
73
+
```js
74
+
Sentry.init({
75
+
tracesSampleRate:undefined,
76
+
});
77
+
```
78
+
79
+
In v9, an `undefined` value will be treated the same as if the value is not defined at all. You'll need to set `tracesSampleRate: 0` if you want to enable tracing without performance.
80
+
71
81
### `@sentry/node`
72
82
73
83
- 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.
`[Sentry] Deprecation warning: \`${undefinedOption}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
`[Sentry] Deprecation warning: \`${key}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
`[Sentry] Deprecation warning: \`${key}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
0 commit comments