Skip to content

Setting boundaries when creating an Histogram #3577

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

Closed
kafkaphoenix opened this issue Dec 11, 2023 · 4 comments
Closed

Setting boundaries when creating an Histogram #3577

kafkaphoenix opened this issue Dec 11, 2023 · 4 comments
Assignees

Comments

@kafkaphoenix
Copy link

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
@aabmass
Copy link
Member

aabmass commented Dec 14, 2023

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
Copy link

lsfischer commented Aug 21, 2024

@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
Copy link
Member

emdneto commented Dec 2, 2024

open-telemetry/opentelemetry-python-contrib#3011 will benefit from this

@emdneto
Copy link
Member

emdneto commented Jan 29, 2025

Closing by #4361

@emdneto emdneto closed this as completed Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants