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

Method add

cmd/tempo-cli/cmd-analyse-block.go:604–608  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

602type cardinality map[string]uint64
603
604func (c cardinality) add(value string) {
605 // TODO - instead of storing the raw value in the map, we could hash it and record the length. The
606 // requirement is to be able to estimate the cardinality and total content size at the end.
607 c[value]++
608}
609
610// totalBytes is the sum of all value content length regardless of cardinality or repetitino
611func (c cardinality) totalBytes() uint64 {

Callers 15

RunMethod · 0.45
RunMethod · 0.45
addMethod · 0.45
_slideMethod · 0.45
tMethod · 0.45
showMethod · 0.45
hideMethod · 0.45
sFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected