diff --git a/CHANGELOG.md b/CHANGELOG.md index 867306a62..2046e80ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,8 @@ Full list of differences found in [this compare](https://github.com/open-telemet ### Changed -* Remove if no changes for this section before release. +* Introduce optional `min` and `max` fields to the Histogram and ExponentialHistogram data points. + [(#279)](https://github.com/open-telemetry/opentelemetry-proto/pull/279) ### Added diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 5256b7390..dcc21d1bd 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -492,6 +492,12 @@ message HistogramDataPoint { // Flags that apply to this specific data point. See DataPointFlags // for the available flags and their meaning. uint32 flags = 10; + + // min is the minimum value over (start_time, end_time]. + optional double min = 11; + + // max is the maximum value over (start_time, end_time]. + optional double max = 12; } // ExponentialHistogramDataPoint is a single data point in a timeseries that describes the @@ -594,6 +600,12 @@ message ExponentialHistogramDataPoint { // (Optional) List of exemplars collected from // measurements that were used to form the data point repeated Exemplar exemplars = 11; + + // min is the minimum value over (start_time, end_time]. + optional double min = 12; + + // max is the maximum value over (start_time, end_time]. + optional double max = 13; } // SummaryDataPoint is a single data point in a timeseries that describes the