Skip to content

Commit

Permalink
add migration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Jan 3, 2024
1 parent d33a743 commit cd839ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ npx @sentry/migr8@latest

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

## Deprecated fields on `Span` and `Transaction`

In v8, the Span class is heavily reworked. The following properties & methods are thus deprecated:

* `span.toContext()`: Access the fields directly instead.
* `span.updateWithContext(newSpanContext)`: Update the fields directly instead.

## Deprecate `pushScope` & `popScope` in favor of `withScope`

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

0 comments on commit cd839ba

Please sign in to comment.