MCPcopy
hub / github.com/grafana/tempo / totalBytes

Method totalBytes

cmd/tempo-cli/cmd-analyse-block.go:611–617  ·  view source on GitHub ↗

totalBytes is the sum of all value content length regardless of cardinality or repetitino

()

Source from the content-addressed store, hash-verified

609
610// totalBytes is the sum of all value content length regardless of cardinality or repetitino
611func (c cardinality) totalBytes() uint64 {
612 total := uint64(0)
613 for v, count := range c {
614 total += uint64(len(v)) * count
615 }
616 return total
617}
618
619func (c cardinality) distinctValueCount() int {
620 return len(c)

Callers 2

aggregateScopeFunction · 0.45
printFullSummaryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected