1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-02 08:52:21 +02:00

Recommend not recording cumulative explicit histogram min/max (#3403)

* Recommend not recording cumulative hist min/max

* Update sdk/metric/aggregation/aggregation.go

Co-authored-by: David Ashpole <dashpole@google.com>

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
Co-authored-by: David Ashpole <dashpole@google.com>
This commit is contained in:
Tyler Yahn 2022-10-31 18:59:05 -07:00 committed by GitHub
parent cc1eaec683
commit 8a390acc34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,12 @@ type ExplicitBucketHistogram struct {
// (500.0, 1000.0], (1000.0, +∞)
Boundaries []float64
// NoMinMax indicates whether to not record the min and max of the
// distribution. By default, these extremes are recorded.
// distribution. By default, these extrema are recorded.
//
// Recording these extrema for cumulative data is expected to have little
// value, they will represent the entire life of the instrument instead of
// just the current collection cycle. It is recommended to set this to true
// for that type of data to avoid computing the low-value extrema.
NoMinMax bool
}