Skip to content

Commit c622710

Browse files
authored
meta(changelog): Add @sentry/tracing notes to 7.46.0 changelog (#7673)
1 parent eb898f5 commit c622710

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ const sentryMiddleware = t.middleware(
5858
const sentrifiedProcedure = t.procedure.use(sentryMiddleware);
5959
```
6060

61+
- **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+
6167
- **fix(node)**: Convert debugging code to callbacks to fix memory leak in `LocalVariables` integration (#7637)
6268

6369
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`.

MIGRATION.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# Deprecations in 7.x
22

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 * as Sentry from "@sentry/browser";
12+
import { BrowserTracing } from "@sentry/tracing";
13+
14+
Sentry.init({
15+
dsn: '__DSN__',
16+
tracesSampleRate: 1.0,
17+
integrations: [
18+
new BrowserTracing(),
19+
],
20+
});
21+
22+
// After
23+
import * as Sentry from "@sentry/browser";
24+
25+
Sentry.init({
26+
dsn: '__DSN__',
27+
tracesSampleRate: 1.0,
28+
integrations: [
29+
new Sentry.BrowserTracing(),
30+
],
31+
});
32+
```
33+
34+
#### Node:
35+
36+
```js
37+
// Before
38+
const Sentry = require("@sentry/node");
39+
require("@sentry/tracing");
40+
41+
Sentry.init({
42+
dsn: '__DSN__',
43+
tracesSampleRate: 1.0,
44+
});
45+
46+
// After
47+
const Sentry = require("@sentry/node");
48+
49+
Sentry.init({
50+
dsn: '__DSN__',
51+
tracesSampleRate: 1.0,
52+
integrations: [
53+
// Automatically instrument Node.js libraries and frameworks
54+
...Sentry.autoDiscoverNodePerformanceMonitoringIntegrations(),
55+
],
56+
});
57+
```
58+
359
## Replay options changed (since 7.35.0) - #6645
460

561
Some options for replay have been depracted in favor of new APIs.

0 commit comments

Comments
 (0)