open-telemetry / open-telemetry/opentelemetry-java-instrumentation
provide a way to opt-in for url.template attribute for http.client.request.duration metric
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1.2k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 228
Description
Is your feature request related to a problem? Please describe.
We need the url.template attribute for http.client.request.duration metrics and java-instrumentation is not generating that attribute.
Describe the solution you'd like
The attribute is declared as Opt-In in the docs here https://opentelemetry.io/docs/specs/semconv/http/http-metrics/#http-client but there is no way to opt in when using opentelemetry-java-instrumentation
Describe alternatives you've considered
No response
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Java HTTP client instrumentation that records the http.client.request.duration metric and review how other opt-in attributes are configured. Check the OpenTelemetry HTTP metrics semantic conventions for url.template, then add coverage showing that the attribute appears only when enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100