Skip to content

Setting boundaries when creating an Histogram #3577

Closed
@kafkaphoenix

Description

@kafkaphoenix

Is your feature request related to a problem?

  • We are offering in our library a meter previously configured so the users can create the metrics they wish, but we face the problem that the user is not going to be able to set boundaries for their histogram metrics as the only way to define boundaries is in the moment of the meter provider creation as we can see in this example

Describe the solution you'd like

  • An option to set boundaries when creating an histogram metrics as it is supported in the go sdk

Describe alternatives you've considered

  • The only workaround we see right now is pre defining a bunch of views

Activity

self-assigned this
on Dec 14, 2023
aabmass

aabmass commented on Dec 14, 2023

@aabmass
Member

Thanks for opening this. This has recently been added to the spec as the "Advisory API": https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-advisory-parameter-explicitbucketboundaries

So we just need someone to implement this :)

lsfischer

lsfischer commented on Aug 21, 2024

@lsfischer

@aabmass
I've opened a feature request about this topic here as well, if there's consensus around it I can try proposing an implementation 😁

emdneto

emdneto commented on Dec 2, 2024

@emdneto
Member
emdneto

emdneto commented on Jan 29, 2025

@emdneto
Member

Closing by #4361

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

    Development

    No branches or pull requests

      Participants

      @aabmass@ocelotl@emdneto@kafkaphoenix@lsfischer

      Issue actions

        Setting boundaries when creating an Histogram · Issue #3577 · open-telemetry/opentelemetry-python