-
Notifications
You must be signed in to change notification settings - Fork 692
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
🚀 Feature: Add instruments support for httpx #2283
Comments
Definitely @damianoneill! Do you think we should add it always by default? |
@nirga I think the best approach is to behave like REQUESTS since the userbase will likely use them similarly. |
Hi @nirga, |
Sounds good @whoiskrtk2! Let me know if you have any questions. Should be fairly straightforward |
I plan to look into the instrumentation for |
Quick question: isn't it a bit bloated of your package to depend on every package under the sun? |
@haf wdym by "every package under the sun"? These are small-footprint packages. Even if we depended on all instrumentations (which we don't) it would have been still a much smaller footprint than a single Do you experience any issues with that? |
It's not about the LoC you depend on, it's the fact that your package has all these other dependencies which brings the headache. Isn't what you're doing here something for extras? https://stackoverflow.com/questions/52474931/what-is-extra-in-pypi-dependency Edit: to answer your question. I haven't explicitly experienced any dependency conflict issues with your package no because we only depend on openai and anthropic right now, but you did break our tracing when we installed you, and the API of your package isn't fully composable (it doesn't separate side effecting calls from pure functions) Edit 2: I would never in my life install an auto-instrumentation package from OT — the moment anything isn't working you're ****ed and have no idea where and what to investigate. |
Which component is this feature for?
All Packages
🔖 Feature description
Today the solution currently supports Instruments.REQUESTS and Instruments.URLLIB3. Is there any plans to extend the instruments to support HTTPX?
🎤 Why is this feature needed ?
Many libraries that require async support have migrated from requests to httpx. Providing httpx support natively would extend the use of this library to a larger user base.
✌️ How do you aim to achieve this?
Ideally, this feature would provide similar ease of configuration as is currently available for Requests.
🔄️ Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: