Skip to content

Commit fbfa87b

Browse files
committed
Disable FastAPI integration for Sentry
1 parent e173686 commit fbfa87b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

utils/sentry.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import functools
44
import sentry_sdk
55

6+
from sentry_sdk.integrations.fastapi import FastApiIntegration
67
from sentry_sdk.integrations.httpx import HttpxIntegration
78
from sentry_sdk.integrations.logging import LoggingIntegration
89
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
@@ -24,6 +25,10 @@
2425
SqlalchemyIntegration(),
2526
HttpxIntegration(),
2627
],
28+
disabled_integrations=[
29+
# FastAPI uses for healthcheck only
30+
FastApiIntegration(),
31+
],
2732
)
2833

2934

0 commit comments

Comments
 (0)