-
Notifications
You must be signed in to change notification settings - Fork 853
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
Explicit histogram boundaries do not match the otel spec #3669
Comments
Thanks for reaching out, looks like this spec change flew under the radar for us. 😓 AFAIK adding these buckets is not a breaking change, and other SDKs made this change after GA as well, so adding these should be safe. 🙂 |
@pichlermarc Can I take this up? I'm reading the documentation to get a better understanding. |
It's yours. 🎉 Thanks for picking this up. 🙂 |
Great, I'll do that. While attempting to execute the npm test, I encountered a problem. |
@Bharath-Ganesh were you able to resolve the issue? 🤔 Could you try if the same problem persists with Node 16? 🤔 Maybe there's a problem with some of our tooling. |
Interesting, could you include the actual error message in the logs? 🤔 |
I would like to work on this @pichlermarc @artdent |
@ashutosh887 I wonder if @Bharath-Ganesh is still working on this, it may be worth syncing up with them to avoid some duplicate work. Feel free to open a PR then. 🙂 |
@ashutosh887 I'm working on this. I got caught up with some work, sorry for the delay. |
Thanks @pichlermarc |
Hey @Bharath-Ganesh are you still working on this? cc: @pichlermarc |
@ashutosh887 I'm pretty swamped. You could take this up. |
Thanks @Bharath-Ganesh |
What happened?
Steps to Reproduce
Initialize sdk-metrics and create a histogram with the default settings. Observe the chosen histogram buckets.
Expected Result
The chosen boundaries should match the metrics spec:
Specifically, the default boundaries should be
[0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000]
.Actual Result
The default boundaries in the node metrics sdk instead are
[0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000]
, which is not as useful for e.g. bucketing slow RPCs.Additional Details
It looks like the defaults are configured here in the sdk-metrics package.
OpenTelemetry Setup Code
No response
package.json
Relevant log output
No response
The text was updated successfully, but these errors were encountered: