Skip to content

Commit

Permalink
histogram: Add a doc comment about when to add a no-op span
Browse files Browse the repository at this point in the history
See prometheus/client_golang#1127 for details.

Signed-off-by: beorn7 <[email protected]>
  • Loading branch information
beorn7 committed Jul 20, 2023
1 parent 95a0733 commit 6f74fd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions io/prometheus/client/metrics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ message Histogram {
repeated double negative_count = 11; // Absolute count of each bucket.

// Positive buckets for the native histogram.
// Use a no-op span (offset 0, length 0) for a native histogram without any
// observations yet and with a zero_threshold of 0. Otherwise, it would be
// indistinguishable from a classic histogram.
repeated BucketSpan positive_span = 12;
// Use either "positive_delta" or "positive_count", the former for
// regular histograms with integer counts, the latter for float
Expand Down

0 comments on commit 6f74fd0

Please sign in to comment.