Skip to content

Commit c6414f1

Browse files
committed
ref(migration): Add removal of Sentry.Handlers.requestHandler, Sentry.Handlers.tracingHandler, Sentry.Handlers.errorHandler to migration guide
1 parent c2ae9bd commit c6414f1

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
@@ -616,6 +616,13 @@ addEventProcessor(event => {
616616
The Sentry tRPC middleware got moved from `Sentry.Handlers.trpcMiddleware()` to `Sentry.trpcMiddleware()`. Functionally
617617
they are the same:
618618

619+
#### Removal of `Sentry.Handlers.requestHandler()`, `Sentry.Handlers.tracingHandler()` and `Sentry.Handlers.errorHandler()`
620+
621+
For Express and Connect you previously had to use `Sentry.Handlers.requestHandler()`,
622+
`Sentry.Handlers.tracingHandler()`, and `Sentry.Handlers.errorHandler()` to add Sentry instrumentation to your app. In
623+
8.x, you only need to use the framework specific error handler (e.g `Sentry.setupExpressErrorHandler(app)`), you can
624+
remove all other handlers.
625+
619626
```js
620627
// v7
621628
import * as Sentry from '@sentry/node';

0 commit comments

Comments
 (0)