-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support AsyncEngine
to SQLAlchemy
#717
Conversation
Kludex
commented
Dec 23, 2024
•
edited
Loading
edited
- Closes async sqlalchemy engine support #713
Deploying logfire-docs with Cloudflare Pages
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #717 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 137 137
Lines 11031 11059 +28
Branches 1539 1546 +7
=========================================
+ Hits 11031 11059 +28 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
|
||
SQLAlchemyInstrumentor().uninstrument() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SQLAlchemyInstrumentor().uninstrument() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't, bug in OTel regarding uninstrumentation/instrumentation.
@pytest.mark.anyio | ||
async def test_sqlalchemy_async_instrumentation(exporter: TestExporter): | ||
with sqlite_async_engine(Path('example.db')) as engine: | ||
logfire.instrument_sqlalchemy(engine=engine) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logfire.instrument_sqlalchemy(engine=engine) | |
logfire.instrument_sqlalchemy(engine) |