-
Notifications
You must be signed in to change notification settings - Fork 684
Instrumentation not working with HTTPX 0.21.1 async client #818
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
Comments
can anyone help me out with this? I'd be happy to create a PR for this if I have some guidance on what should I look for in the codebase |
It seems like the this call uses a single I ran your code in a virtual environment and modified httpx with request_context(request=request):
response = await transport.handle_async_request(
request.method.encode("utf-8"), request.url
) After that, your code continues to run and fails later with another error. Maybe what is needed is a change in the httpx instrumentation to extract |
I believe it's caused by this change: encode/httpx#1840. The latest version of |
I think that it was solved here: #866 |
FWIW I can't reproduce this with |
@jlugao |
Describe your environment
I am using python 3.9 and
Steps to reproduce
clone https://github.com/jlugao/httpx-opentelemetry-bug
pip install requirements.txt
python sample.py
What is the expected behavior?
It should print 200 and send data to jaeger
What is the actual behavior?
Additional context
This is a small script that I did to reproduce an error happening in an app that is running on docker and fastapi.
The text was updated successfully, but these errors were encountered: