Skip to content

Commit

Permalink
add precision to sparse histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonArp committed Aug 31, 2024
1 parent 0fcad16 commit ae567bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/proto/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ message SparseHistogramEntry {
message SparseHistogramSupportingData {
string unit = 1;
repeated SparseHistogramEntry entries = 2;
// This is actually precision - 1. Since protobuf defaults to 0, we need
// the 0 to mean "default" and 1 mean "truncate the entire mantissa (0 bits of mantissa)"
uint32 precision = 3;
}

message HostIdentification {
Expand Down

0 comments on commit ae567bc

Please sign in to comment.