You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting boundaries when creating an Histogram #3577
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
Reacted by Christian Schmid, Denis, Lucas Fischer, Lukas Richter, Emídio and Alexey Shokov
Activity
aabmass commentedon 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 commentedon 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 commentedon Dec 2, 2024
open-telemetry/opentelemetry-python-contrib#3011 will benefit from this
emdneto commentedon Jan 29, 2025
Closing by #4361