Add APM #184

Merged
luketainton merged 5 commits from feature/apm into next 2024-04-21 17:17:03 +02:00
Showing only changes of commit e09960e21f - Show all commits

View File

@ -1,16 +0,0 @@
import sentry_sdk
from sentry_sdk.integrations.stdlib import StdlibIntegration
from app.utils.config import config
if config.sentry_enabled:
apm = sentry_sdk.init(
dsn=config.sentry_dsn,
enable_tracing=True,
environment=config.environment,
integrations=[StdlibIntegration()],
spotlight=True
)
else:
apm = None