Closed
Description
Histogram bucket annotations were added with #63650. But they need to used with histograms that are published.
All dotnet/runtime
histograms use seconds so they should have an annotation to provide good bucket boundaries.
CreateHistogram<double>()
usages: https://github.com/search?q=repo%3Adotnet%2Fruntime%20CreateHistogram&type=code. Looks like they're currently all networking related.
dotnet/aspnetcore doing the same thing: dotnet/aspnetcore#56500
This is easy to do and should be done in .NET 9. It allows opentelemetry-dotnet to remove a hack to infer the bucket sizes. They can replace that code with code that looks at the attached bucket sizes.