Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mdisibio committed Oct 23, 2024
1 parent 300f2db commit 95660e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/distributor/usage/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ func (u *Tracker) Collect(ch chan<- prometheus.Metric) {
}
}

var _ prometheus.Collector = (*Tracker)(nil)

// hash the given key-value pairs buffers. Buffers must have the
// same lengths
func hash(keys []string, values []string) uint64 {
Expand Down Expand Up @@ -397,7 +399,7 @@ func nonSpanDataLength(batch *v1.ResourceSpans) (int, int) {
}

for _, ss := range batch.ScopeSpans {
// This is the data to store the prescence of this ss
// This is the data to store the presence of this ss
total += protoLengthMath(1)

l = len(ss.SchemaUrl)
Expand Down

0 comments on commit 95660e4

Please sign in to comment.