Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 5099a9b

Browse files
author
Bogdan Drutu
authored
Remove Range from Distribution. No backend supports this. (#67)
1 parent bc0d87d commit 5099a9b

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

opencensus/proto/stats/metrics/metrics.proto

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,6 @@ message DistributionValue {
180180
// If count is zero then this field must be zero.
181181
double sum_of_squared_deviation = 3;
182182

183-
// The range of the population values.
184-
message Range {
185-
// The minimum of the population values.
186-
double min = 1;
187-
188-
// The maximum of the population values.
189-
double max = 2;
190-
}
191-
192-
// If specified, contains the range of the population values. The field
193-
// must not be present if the count is zero.
194-
Range range = 4;
195-
196183
// A Distribution may optionally contain a histogram of the values in the
197184
// population. The bucket boundaries for that histogram are described by
198185
// bucket_bounds. This defines size(bucket_bounds) + 1 (= N)
@@ -214,7 +201,7 @@ message DistributionValue {
214201
//
215202
// Don't change bucket boundaries within a timeseries if your backend
216203
// doesn't support this.
217-
repeated double bucket_bounds = 5;
204+
repeated double bucket_bounds = 4;
218205

219206
message Bucket {
220207
// The number of values in each bucket of the histogram, as described in
@@ -225,7 +212,7 @@ message DistributionValue {
225212
// If the distribution does not have a histogram, then omit this field.
226213
// If there is a histogram, then the sum of the values in the Bucket counts
227214
// must equal the value in the count field of the distribution.
228-
repeated Bucket buckets = 6;
215+
repeated Bucket buckets = 5;
229216

230217
// Exemplars are example points that may be used to annotate aggregated
231218
// Distribution values. They are metadata that gives information about a
@@ -243,5 +230,5 @@ message DistributionValue {
243230
}
244231

245232
// If the distribution does not have a histogram, then omit this field.
246-
repeated Exemplar exemplars = 7;
233+
repeated Exemplar exemplars = 6;
247234
}

0 commit comments

Comments
 (0)