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

TypeAlias token

pkg/model/trace/combine.go:15–15  ·  view source on GitHub ↗

token is uint64 to reduce hash collision rates. Experimentally, it was observed that fnv32 could approach a collision rate of 1 in 10,000. fnv64 avoids collisions when tested against traces with up to 1M spans (see matching test). A collision results in a dropped span during combine.

Source from the content-addressed store, hash-verified

13// when tested against traces with up to 1M spans (see matching test). A collision
14// results in a dropped span during combine.
15type token uint64
16
17var ErrTraceTooLarge = fmt.Errorf("trace exceeds max size")
18

Callers 2

TestTokenForIDCollisionFunction · 0.70
ConsumeWithFinalMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected