Use SqlalchemyIntegration.
@@ -4,6 +4,7 @@ from flask import render_template
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
+from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
from spinach.contrib.sentry_sdk_spinach import SpinachIntegration
@@ -28,6 +29,7 @@ def init_app(app):
),
FlaskIntegration(),
SpinachIntegration(),
+ SqlalchemyIntegration(),
],
request_bodies="always",
with_locals=True,
