Skip to content

Commit

Permalink
Fix Sentry middleware setup example for Python (#993)
Browse files Browse the repository at this point in the history
Inngest expects a list of uninitialized middleware here, i.e. the actual SentryMiddleware class rather than an instance of it.

The class is initialized in MiddlewareManager.add when sending events.
  • Loading branch information
rbm authored Nov 14, 2024
1 parent 324bd07 commit 8fea0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/docs/features/middleware/sentry-middleware.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Using the Sentry middleware is useful to:

inngest_client = inngest.Inngest(
app_id="my-app",
middleware=[SentryMiddleware()],
middleware=[SentryMiddleware],
)
```

Expand Down

0 comments on commit 8fea0ac

Please sign in to comment.