You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unpin sqlalchemy<2.1 once the OTel SQLAlchemy instrumentor supports 2.1 #60
pyproject.toml pins sqlalchemy[asyncio]<2.1. Every released opentelemetry-instrumentation-sqlalchemy up to 0.66b1 declares sqlalchemy >= 1.0.0, < 2.1.0. On SQLAlchemy 2.1, instrument() hits a DependencyConflict and does nothing, and lite-bootstrap silences the logger that reports it. With #59 the SQLAlchemy instrumentor is the only source of database spans, so upgrading would quietly drop all DB tracing.
Why it's worth doing
On our benchmark, SQLAlchemy 2.1.4 made ORM session.get about 20-30% faster than 2.0.54. Core queries and bulk inserts didn't change.
When unblocked
Upgrade opentelemetry-instrumentation-sqlalchemy to the release with SQLAlchemy 2.1 support.
Remove the <2.1 pin and run uv lock.
Run the full suite. tests/test_tracing.py fails if the instrumentor stops producing spans.
Activity