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

Method token

pkg/livetraces/livetraces.go:68–72  ·  view source on GitHub ↗
(traceID []byte)

Source from the content-addressed store, hash-verified

66}
67
68func (l *LiveTraces[T]) token(traceID []byte) uint64 {
69 l.hash.Reset()
70 l.hash.Write(traceID)
71 return l.hash.Sum64()
72}
73
74func (l *LiveTraces[T]) Len() uint64 {
75 return uint64(len(l.Traces))

Callers 1

Calls 2

ResetMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected