opentelemetry-cpp
opentelemetry-cpp copied to clipboard
[Metrics API] Add support for histogram advice API
Experimental histogram advice API to enable instrumentation library suggest histogram buckets - https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument-advice
Adding the breaking change label: this will require a new or changed API, hence changing the API ABI for metrics.
This issue was marked as stale due to lack of activity.
Is the Advice / Hints API still experimental? https://github.com/open-telemetry/opentelemetry-specification/issues/2229
The go client already has support for it now: https://github.com/open-telemetry/opentelemetry-go/pull/4605
The java client as well. Not really sure how to use histograms at all without that
@Falmarri - The histogram buckets can be still configured using View API. Or let us know if you are looking for specific configuration from advisory API.
@lalitb Did I miss docs on this? Is there an example? This is using the sdk classes, right?
Yes, there are unit-tests for custom buckets - https://github.com/open-telemetry/opentelemetry-cpp/blob/fabd8cc2bc318cb47d5db7322ea9c8cd3f4b847a/sdk/test/metrics/histogram_test.cc#L78