@@ -414,45 +414,14 @@ message HistogramDataPoint {
414414 // a histogram is provided.
415415 double sum = 5 ;
416416
417- // Bucket contains values for a bucket.
418- message Bucket {
419- // The number of values in each bucket of the histogram, as described by
420- // bucket_options.
421- uint64 count = 1 ;
422-
423- // Exemplars are example points that may be used to annotate aggregated
424- // Histogram values. They are metadata that gives information about a
425- // particular value added to a Histogram bucket.
426- message Exemplar {
427- // Value of the exemplar point. It determines which bucket the exemplar belongs to.
428- // If bucket_options define bounds for this bucket then this value must be within
429- // the defined bounds.
430- double value = 1 ;
431-
432- // time_unix_nano is the moment when this exemplar was recorded.
433- // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
434- fixed64 time_unix_nano = 2 ;
435-
436- // exemplar_attachments are contextual information about the example value.
437- // Keys in this list must be unique.
438- repeated opentelemetry.proto.common.v1.StringKeyValue attachments = 3 ;
439- }
440-
441- // exemplar is an optional representative value of the bucket.
442- Exemplar exemplar = 2 ;
443- }
444-
445- // buckets is an optional field contains the values of histogram for each bucket.
446- //
447- // The sum of the values in the buckets "count" field must equal the value in the count field.
417+ // bucket_counts is an optional field contains the count values of histogram
418+ // for each bucket.
448419 //
449- // The number of elements in buckets array must be by one greater than the
450- // number of elements in bucket_bounds array.
420+ // The sum of the bucket_counts must equal the value in the count field.
451421 //
452- // Note: if HistogramDataPoint.bucket_options defines bucket bounds then this field
453- // must also be present and number of elements in this field must be equal to the
454- // number of buckets defined by bucket_options.
455- repeated Bucket buckets = 6 ;
422+ // The number of elements in bucket_counts array must be by one greater than
423+ // the number of elements in explicit_bounds array.
424+ repeated uint64 bucket_counts = 6 ;
456425
457426 // A histogram may optionally contain the distribution of the values in the population.
458427 // In that case one of the option fields below and "buckets" field both must be defined.
0 commit comments