Skip to content

fix(monitoring): instrument SQLAlchemy 2.1 despite the instrumentor's version range - #47

Merged
mortenoh merged 1 commit into
mainfrom
fix/sqlalchemy-instrumentation
Oct 19, 2026
Merged

mortenoh merged 1 commit into
mainfrom
fix/sqlalchemy-instrumentation

Conversation

@mortenoh

Copy link
Copy Markdown
Contributor

Summary

  • opentelemetry-instrumentation-sqlalchemy 0.66b1 declares sqlalchemy >= 1.0.0, < 2.1.0. With SQLAlchemy 2.1.x installed (chapkit's lock has 2.1.4), SQLAlchemyInstrumentor().instrument() logs an error at start and instruments nothing.
  • setup_monitoring now passes skip_dep_check=True. Checked against SQLAlchemy 2.1.4: the instrumentor reports instrumented, and a select 1 yields connect and select spans.

Test plan

  • make lint
  • make test (new test asserts instrument(skip_dep_check=True))

@mortenoh
mortenoh merged commit 3e47f02 into main Oct 19, 2026
7 checks passed
@mortenoh
mortenoh deleted the fix/sqlalchemy-instrumentation branch October 19, 2026 21:06
@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant