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

Function KeyPathWithPrefix

tempodb/backend/raw.go:352–358  ·  view source on GitHub ↗

KeyPathWithPrefix returns a keypath with a prefix

(keypath KeyPath, prefix string)

Source from the content-addressed store, hash-verified

350
351// KeyPathWithPrefix returns a keypath with a prefix
352func KeyPathWithPrefix(keypath KeyPath, prefix string) KeyPath {
353 if len(prefix) == 0 {
354 return keypath
355 }
356
357 return append([]string{prefix}, keypath...)
358}
359
360// MetaFileName returns the object name for the block meta given a block id and tenantid
361func MetaFileName(blockID uuid.UUID, tenantID, prefix string) string {

Callers 15

WriteMethod · 0.92
AppendMethod · 0.92
DeleteMethod · 0.92
ListMethod · 0.92
ListBlocksMethod · 0.92
FindMethod · 0.92
ReadMethod · 0.92
ReadRangeMethod · 0.92
DeleteVersionedMethod · 0.92
ReadVersionedMethod · 0.92
WriteMethod · 0.92
AppendMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected