-
Notifications
You must be signed in to change notification settings - Fork 628
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
httpx instrumentation doesn't work for httpx.get
, httpx.post
, etc.
#1742
Comments
@macieyng funny that you opened this, I just hit the same thing where no httpx spans showed up. If you turn on debug logging in
This was caused by the changes at #1460 |
@phillipuniverse I haven't check that, but seems like you're right about it. Thank you for linking the issues and making the PR! |
Describe your environment Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main.
Azure Function run locally.
Steps to reproduce
Describe exactly how to reproduce the error. Include a code sample if applicable.
requests
andhttpx
libs and instrumentationsget/post/etc
request to some api without initializing a client.get/post/etc
request to some api with initializing a client.What is the expected behavior?
What did you expect to see?
Whenever I use
httpx.get
(or similar) a new dependency/span should be created and exported - in my case to Azure Application Insights.What is the actual behavior?
What did you see instead?
I don't see expected dependencies/spans/traces exported.
Additional context
Full example of the function.
It uses OpenTelemetryExtension POC described here and
TracedClass
implemented as follows:While I understand why we should use
httpx.Client
overhttpx.get
there are reasons why people are using latter more often than former, but current implementation doesn't allow to trace simple requests. In the OpenCensus httpx extensions there was an opposite issue: httpx.Client was not traced instead - census-instrumentation/opencensus-python#1186.I'm up for working on this issue and would love to hear your comments and tips.
The text was updated successfully, but these errors were encountered: