GoogleCloudPlatform / opentelemetry-operations-go

Apache License 2.0
127 stars 99 forks source link

Implement sum of squared deviations for exponential histograms in SDK exporter #807

Open dashpole opened 4 months ago

dashpole commented 4 months ago

Follow-up to https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/pull/777

See https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/blob/c7b17b6dd7a9f3b08b8539ed846cb4547927011a/exporter/metric/metric.go#L630

For fixed-bucket histograms, we assumed each observation occurred at the center of each bucket, and all underflow and overflow observations occurred at the lowest/highest bucket boundary. We could probably implement similar logic for exponential histograms.

dashpole commented 4 months ago

cc @franciscovalentecastro