-
Notifications
You must be signed in to change notification settings - Fork 576
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 Instrumentation (metric) for net/http #1336
Add Instrumentation (metric) for net/http #1336
Comments
In accordance with the new instrumentation policy hosting guidelines I'm closing this. |
Are we supposed to fork otelhttp to add metrics? |
Sorry @MrAlias , but I don't quite follow. Being a standard library instrumentation, isn't this repo the right place to put it? I didn't find a good reason for not contributing for it here. Sorry if I missed something! |
Ah, yeah. Closing was a mistake given we already host this instrumentation. |
@MrAlias No worries! So I'm guessing this is a ok for developing this? If that's the case, I can work on it! |
Personally I feel like that kind of information is critical to the instrumentation. As far as I can tell, the otelhttp instrumentation is mostly barebones at the moment and only records Would love to see this data @victoraugustolls! |
Background
Package Link:
net/http
stdlib http client.
Proposed Solution
Collect
http.client.duration
metric from the stdlib http client. Currently I'm using a customRoundTripper
that calls theotelhttp
tracingRoundTripper
, and I think it would be nice if this was inside the contrib. If agreed, I can open a PR for it!I see something similar was done in #427 , but it was unfortunately closed! That makes me think that this might not be desired? This is why I'm asking in advance. Thanks!
Metrics
Instruments
Prior Art
Tasks
Dockerfile
file to build example application.docker-compose.yml
to run example in a docker environment to demonstrate instrumentation.The text was updated successfully, but these errors were encountered: