opentelemetry-instrumentation-sqlalchemy
OpenTelemetry SQLAlchemy instrumentation
Install
opentelemetry-instrumentation-sqlalchemy on PyPI
pip
pip install opentelemetry-instrumentation-sqlalchemyuv
uv add opentelemetry-instrumentation-sqlalchemypoetry
poetry add opentelemetry-instrumentation-sqlalchemyPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, packaging, wrapt |
| Maintenance | actively maintained — 28 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: opentelemetry_instrumentation_sqlalchemy-0.65b0-py3-none-any.whl
About opentelemetry-instrumentation-sqlalchemy
from the package's own PyPI description — quoted content, verbatim
OpenTelemetry SQLAlchemy Instrumentation
|pypi|
.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-sqlalchemy.svg :target: https://pypi.org/project/opentelemetry-instrumentation-sqlalchemy/
This library allows tracing requests made by the SQLAlchemy library.
Installation
::
pip install opentelemetry-instrumentation-sqlalchemy
References
SQLAlchemy Project <https://www.sqlalchemy.org/>_OpenTelemetry SQLAlchemy Tracing <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/sqlalchemy/sqlalchemy.html>_OpenTelemetry Project <https://opentelemetry.io/>_OpenTelemetry Python Examples <https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples>_
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Automatically traces SQL queries executed through SQLAlchemy, integrating with OpenTelemetry to capture database operation metrics and spans for observability.
Low friction installation with five stable runtime dependencies; actively maintained with a release 28 days ago and ongoing repository activity.
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, typical for OpenTelemetry ecosystem packages.
Usage
pip install opentelemetry-instrumentation-sqlalchemy
from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor
SQLAlchemyInstrumentor().instrument()
Requires Python 3.10 or later; OpenTelemetry SDK and exporter must be separately configured to collect and export traces.
Verdict: A well-maintained, actively developed instrumentation library in beta status with no known vulnerabilities. Permissive licensing and low install friction make it suitable for adding SQLAlchemy observability to OpenTelemetry-enabled applications, though beta status warrants testing before production deployment.
Needs verification
- Whether beta status (0.65b0) indicates API stability or planned breaking changes before 1.0 release
- Performance overhead of instrumentation on high-throughput database workloads
- Compatibility matrix with specific SQLAlchemy versions beyond the generic dependency
Similar packages
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-psycopg2permissive · top 1,000 on PyPI
opentelemetry-instrumentation-redispermissive · top 1,000 on PyPI
SQLAlchemypermissive · top 100 on PyPI
opentelemetry-instrumentation-aiohttp-clientpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-djangopermissive · top 1,000 on PyPI
opentelemetry-instrumentation-flaskpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-threadingpermissive · top 1,000 on PyPI
azure-monitor-opentelemetry-exporterpermissive · top 1,000 on PyPI
logfirepermissive · top 1,000 on PyPI