-
Notifications
You must be signed in to change notification settings - Fork 767
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
Ability to add custom metric attributes to http_client_duration and http_server_duration #4317
Comments
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
remove stale label |
keep it live please 🙏 |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
no |
Up, we also want to have this. Our primary case is that we want to set |
Added the PR #4884 for it. Notice that interface didn't have
However, |
Discussed in #4313
Originally posted by jurabek November 21, 2023
The current version of
opentelemetry-instrumentation-http
has a limitation where it removes attributes fromoutgoing-request
andincoming-request
metrics due to high cardinality issues. However, it would be useful to have the capability of adding other attributes to the HTTP metrics according to the user's requirements. For instance, if I want to filter and monitor specific downstream requests, addinghttp_target
to theoutgoing-request
metric does not create high cardinality issues for me or other attributes e.ghttp_status_family: 2xx
Options would be by passing
metricAttributes
intoapplyCustomAttributesOnSpan
cc: @hectorhdzg @legendecas for opinions and feedback 😊
Thank you 🙏
The text was updated successfully, but these errors were encountered: