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

Function KeyPathForBlock

tempodb/backend/raw.go:342–344  ·  view source on GitHub ↗

KeyPathForBlock returns a correctly ordered keypath given a block id and tenantid

(blockID uuid.UUID, tenantID string)

Source from the content-addressed store, hash-verified

340
341// KeyPathForBlock returns a correctly ordered keypath given a block id and tenantid
342func KeyPathForBlock(blockID uuid.UUID, tenantID string) KeyPath {
343 return []string{tenantID, blockID.String()}
344}
345
346// ObjectFileName returns a unique identifier for an object in object storage given its name and keypath
347func ObjectFileName(keypath KeyPath, name string) string {

Callers 15

TestReadWriteFunction · 0.92
TestListFunction · 0.92
TestHedgeFunction · 0.92
ClearBlockMethod · 0.92
TombstoneBlockMethod · 0.92
compactedMetaFileNameMethod · 0.92
metaFileNameMethod · 0.92
TestReadWriteFunction · 0.92

Calls 1

StringMethod · 0.45

Tested by 11

TestReadWriteFunction · 0.74
TestListFunction · 0.74
TestHedgeFunction · 0.74
TestReadWriteFunction · 0.74
TestKeyPathForBlockFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…