Skip to content

Metrics instrumentation httpx #3440

Closed
@hectorhdzg

Description

@hectorhdzg
Member

What problem do you want to solve?

HTPP metrics: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/semantic_conventions/http-metrics.md

Describe the solution you'd like

Add support for Metrics in httpx instrumentation

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

Yes

Activity

hectorhdzg

hectorhdzg commented on Apr 24, 2025

@hectorhdzg
MemberAuthor

I would like to work on this, if someone can assign it to me it would be great, thanks.

karansharmapaypay

karansharmapaypay commented on Jun 23, 2025

@karansharmapaypay

Hi folks, Just tested this on one of my services and found out that this does not emit path/host etc in the labels. Is this intended?

hectorhdzg

hectorhdzg commented on Jun 23, 2025

@hectorhdzg
MemberAuthor

@karansharmapaypay the metric attributes semantic convention documentation is available here, adding extra attributes related to the URL cause cardinality issues in metrics, url.template could add more information about the URL but is not currently supported here and still marked as in development in OpenTelemetry Semantic conventions side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @emdneto@hectorhdzg@karansharmapaypay

    Issue actions

      Metrics instrumentation httpx · Issue #3440 · open-telemetry/opentelemetry-python-contrib