Skip to content

Commit adf2a76

Browse files
committed
add migration docs
1 parent ef18cc7 commit adf2a76

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

MIGRATION.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ npx @sentry/migr8@latest
88

99
This will let you select which updates to run, and automatically update your code. Make sure to still review all code changes!
1010

11+
## Deprecated fields on `Span` and `Transaction`
12+
13+
In v8, the Span class is heavily reworked. The following properties & methods are thus deprecated:
14+
15+
* `span.toContext()`: Access the fields directly instead.
16+
* `span.updateWithContext(newSpanContext)`: Update the fields directly instead.
17+
1118
## Deprecate `pushScope` & `popScope` in favor of `withScope`
1219

1320
Instead of manually pushing/popping a scope, you should use `Sentry.withScope(callback: (scope: Scope))` instead.

0 commit comments

Comments
 (0)