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

Method NewID

modules/blockbuilder/util/id.go:51–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (d *DeterministicIDGenerator) NewID() backend.UUID {
52 return backend.UUID(newDeterministicID(d.hash, d.buf, d.seq.Inc()))
53}
54
55func newDeterministicID(hash hash.Hash, data []byte, seq uint64) uuid.UUID {
56 // update last 8 bytes of data with seq

Calls 3

UUIDTypeAlias · 0.92
newDeterministicIDFunction · 0.85
IncMethod · 0.65