-
Notifications
You must be signed in to change notification settings - Fork 87
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
Add 6 instrument methods #207
Conversation
Deploying logfire-docs with Cloudflare Pages
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
Need to remember to add |
from starlette.applications import Starlette | ||
|
||
|
||
def instrument_starlette(app: Starlette, **kwargs: Any): |
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.
As a user, I would have to go to the OTel documentation to see which ones are the kwargs. I think we should correctly type hint instead of using the kwargs.
If the argument for doing it like this is because they may break our API, we can just do the if TYPE_CHECKING
trick. It just provides a far better experience.
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.
Yes, we should do that eventually.
Part of #193