This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
opencensus/proto/stats/metrics Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -226,12 +226,28 @@ message DistributionValue {
226226 // The number of values in each bucket of the histogram, as described in
227227 // bucket_bounds.
228228 int64 count = 1 ;
229-
230- // TODO: Add support for exemplars.
231229 }
232230
233231 // If the distribution does not have a histogram, then omit this field.
234232 // If there is a histogram, then the sum of the values in the Bucket counts
235233 // must equal the value in the count field of the distribution.
236234 repeated Bucket buckets = 6 ;
235+
236+ // Exemplars are example points that may be used to annotate aggregated
237+ // Distribution values. They are metadata that gives information about a
238+ // particular value added to a Distribution bucket.
239+ message Exemplar {
240+ // Value of the exemplar point. It determines which bucket the exemplar
241+ // belongs to.
242+ double value = 1 ;
243+
244+ // The observation (sampling) time of the above value.
245+ google.protobuf.Timestamp timestamp = 2 ;
246+
247+ // Contextual information about the example value.
248+ map <string , string > attachments = 3 ;
249+ }
250+
251+ // If the distribution does not have a histogram, then omit this field.
252+ repeated Exemplar exemplars = 7 ;
237253}
You can’t perform that action at this time.
0 commit comments