Skip to content

Commit 07c8af9

Browse files
authored
fix(docs): Change to addTracingExtensions was not documented in MIGRATION.md (#8101)
1 parent b88a26d commit 07c8af9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

MIGRATION.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@
44

55
The `timestampWithMs` util is deprecated in favor of using `timestampInSeconds`.
66

7+
## `addTracingExtensions` replaces `addExtensionMethods` (since 7.46.0)
8+
9+
Since the deprecation of `@sentry/tracing`, tracing extensions are now added by calling `addTracingExtensions` which is
10+
exported from all framework SDKs.
11+
12+
```js
13+
// Before
14+
import * as Sentry from "@sentry/browser";
15+
import { addExtensionMethods } from "@sentry/tracing";
16+
17+
Sentry.init({
18+
dsn: '__DSN__',
19+
tracesSampleRate: 1.0,
20+
});
21+
22+
addExtensionMethods()
23+
24+
// After
25+
import * as Sentry from "@sentry/browser";
26+
27+
Sentry.init({
28+
dsn: '__DSN__',
29+
tracesSampleRate: 1.0,
30+
});
31+
32+
Sentry.addTracingExtensions();
33+
```
34+
735
## Remove requirement for `@sentry/tracing` package (since 7.46.0)
836

937
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.

0 commit comments

Comments
 (0)