Skip to content

How to Add HTTP Path as a Dimension to http_client_duration_bucket Metric in OpenTelemetry Java? #12971

@dengkai1991

Description

@dengkai1991

I want to include the HTTP path (e.g., /api/resource) as a label or dimension in the http_client_duration_bucket metric for outbound HTTP requests. How can I achieve this? Is there a way to customize or add attributes to the metrics generated by the HTTP client instrumentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds triageNew issue that requires triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions