SQLAlchemy
The SQLAlchemy integration captures queries from SQLAlchemy as breadcrumbs. The integration is being tested with SQLAlchemy 1.2 or later.
Install
Install sentry-sdk
from PyPI with the sqlalchemy
extra.
Copied
pip install --upgrade 'sentry-sdk[sqlalchemy]'
Configure
Add SqlalchemyIntegration()
to your integrations
list:
Copied
import sentry_sdk
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
sentry_sdk.init(
dsn="https://examplePublicKey@o0.ingest.sentry.io/0",
integrations=[
SqlalchemyIntegration(),
],
)
Supported Versions
- SQLAlchemy: 1.2+
- Python: 2.7+
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
- Package:
- pypi:sentry-sdk
- Version:
- 1.18.0
- Repository:
- https://github.com/getsentry/sentry-python