-
Notifications
You must be signed in to change notification settings - Fork 64
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
logfire.instrument_psycopg()
function
#30
Conversation
Deploying logfire-docs with Cloudflare Pages
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
logfire.instrument_psycopg()
function
PYD-874 Extra `instrument_` methods
We've talked in the new website about:
This has to be done this week since the website will contain it from the first day. |
Args: | ||
conn_or_module: Can be: | ||
|
||
- The `psycopg` (version 3) or `psycopg2` module. | ||
- The string `'psycopg'` or `'psycopg2'` to instrument the module. | ||
- `None` (the default) to instrument whichever module(s) are installed. | ||
- A `psycopg` or `psycopg2` connection. | ||
|
||
**kwargs: Additional keyword arguments to pass to the OpenTelemetry `instrument` methods, | ||
particularly `enable_commenter` and `commenter_options`. |
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.
Does this renders nicely on the API docs?
from types import ModuleType | ||
from typing import TYPE_CHECKING, Any | ||
|
||
from packaging.requirements import Requirement |
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.
Do we have this as dependency?
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.
Good point, added.
Part of https://linear.app/pydantic/issue/PYD-874/extra-instrument-methods