I am using Sentry version 20.9.0, sentry-sdk[flask] version 0.17.4 and Flask version 1.1.2. Here is how I have setup sentry
sentry_sdk.init(
dsn=config.SENTRY_DSN,
integrations=[FlaskIntegration()],
environment=config.ENVIRONMENT,
release=config.RELEASE_ID,
traces_sample_rate=config.TRACES_SAMPLE_RATE
)
but the performance monitor is not showing the DB query
Hello, which db and orm/library are you using?
I’m using Postgres and sqlalchemy
ok please add the sqlalchemy integration as shown at https://docs.sentry.io/platforms/python/integrations/sqlalchemy/ (just append to the array)
Or add the option _experiments={"auto_enabling_integrations": True}
if you want some magic to happen automatically.
I have done this, but I still don’t see sql traces in the sentry output