Skip to content

Commit

Permalink
docs(migration): Add removal of Sentry.Handlers.requestHandler, Sentr…
Browse files Browse the repository at this point in the history
…y… (#12030)
  • Loading branch information
andreiborza committed May 14, 2024
1 parent 43d4d33 commit de01068
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 @@ -616,6 +616,13 @@ addEventProcessor(event => {
The Sentry tRPC middleware got moved from `Sentry.Handlers.trpcMiddleware()` to `Sentry.trpcMiddleware()`. Functionally
they are the same:

#### Removal of `Sentry.Handlers.requestHandler()`, `Sentry.Handlers.tracingHandler()` and `Sentry.Handlers.errorHandler()`

For Express and Connect you previously had to use `Sentry.Handlers.requestHandler()`,
`Sentry.Handlers.tracingHandler()`, and `Sentry.Handlers.errorHandler()` to add Sentry instrumentation to your app. In
8.x, you only need to use the framework specific error handler (e.g `Sentry.setupExpressErrorHandler(app)`), you can
remove all other handlers.

```js
// v7
import * as Sentry from '@sentry/node';
Expand Down

0 comments on commit de01068

Please sign in to comment.