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(tracing)**: Remove requirement for `@sentry/tracing` package
62
+
63
+
With `7.46.0` you no longer require the `@sentry/tracing` package to use tracing and performance monitoring with the Sentry JavaScript SDKs. The `@sentry/tracing` package will be removed in a future major release, but can still be used with no changes.
64
+
65
+
Please see the [Migration docs](./MIGRATION.md/#remove-requirement-for-sentrytracing-package-since-7460) for more details.
66
+
61
67
-**fix(node)**: Convert debugging code to callbacks to fix memory leak in `LocalVariables` integration (#7637)
62
68
63
69
This fixes a memory leak in the opt-in [`LocalVariables` integration](https://blog.sentry.io/2023/02/01/local-variables-for-nodejs-in-sentry/), which adds local variables to the stacktraces sent to Sentry. The minimum recommended version to use the `LocalVariables` is now `7.46.0`.
Copy file name to clipboardExpand all lines: MIGRATION.md
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,61 @@
1
1
# Deprecations in 7.x
2
2
3
+
## Remove requirement for `@sentry/tracing` package (since 7.46.0)
4
+
5
+
With `7.46.0` you no longer require the `@sentry/tracing` package to use tracing and performance monitoring with the Sentry JavaScript SDKs. The `@sentry/tracing` package will be removed in a future major release, but can still be used in the meantime.
6
+
7
+
#### Browser:
8
+
9
+
```js
10
+
// Before
11
+
import*asSentryfrom"@sentry/browser";
12
+
import { BrowserTracing } from"@sentry/tracing";
13
+
14
+
Sentry.init({
15
+
dsn:'__DSN__',
16
+
tracesSampleRate:1.0,
17
+
integrations: [
18
+
newBrowserTracing(),
19
+
],
20
+
});
21
+
22
+
// After
23
+
import*asSentryfrom"@sentry/browser";
24
+
25
+
Sentry.init({
26
+
dsn:'__DSN__',
27
+
tracesSampleRate:1.0,
28
+
integrations: [
29
+
newSentry.BrowserTracing(),
30
+
],
31
+
});
32
+
```
33
+
34
+
#### Node:
35
+
36
+
```js
37
+
// Before
38
+
constSentry=require("@sentry/node");
39
+
require("@sentry/tracing");
40
+
41
+
Sentry.init({
42
+
dsn:'__DSN__',
43
+
tracesSampleRate:1.0,
44
+
});
45
+
46
+
// After
47
+
constSentry=require("@sentry/node");
48
+
49
+
Sentry.init({
50
+
dsn:'__DSN__',
51
+
tracesSampleRate:1.0,
52
+
integrations: [
53
+
// Automatically instrument Node.js libraries and frameworks
0 commit comments