Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Flask-SQLAlchemy Support #3220

Unanswered
ConfusedCoder556 asked this question in Q&A
Discussion options

Is there any support for the Flask-SQLAlchemy library with sentry? I would love to monitor my queries. I've tried using the regular SQLAlchemy sentry integration but that doesn't seem to capture anything.

Has anyone else got this to work?

I'm using https://flask-sqlalchemy.palletsprojects.com/en/3.1.x/

You must be logged in to vote

Replies: 1 comment

Comment options

This should work, because we patch the sqlalchemy package, that is also used by flask-sqlalchemy.

Things to consider:

  • The db queries are only available if you have tracing enabled. So please make sure you have tracing enabled.
  • Can you check if the SQLAlchemy integration is enabled when initializing the Sentry SDK? For this you need to set sentry_sdk.init(..., debug=True) and when you then start your Flask server you should see a message like [sentry] DEBUG: Enabling integration sqlalchemy

if both those things are true, then you should see your queries in Sentry.io

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /