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

Method Metas

tempodb/blocklist/list.go:54–65  ·  view source on GitHub ↗
(tenantID string)

Source from the content-addressed store, hash-verified

52}
53
54func (l *List) Metas(tenantID string) []*backend.BlockMeta {
55 if tenantID == "" {
56 return nil
57 }
58
59 l.mtx.Lock()
60 defer l.mtx.Unlock()
61
62 copiedBlocklist := make([]*backend.BlockMeta, 0, len(l.metas[tenantID]))
63 copiedBlocklist = append(copiedBlocklist, l.metas[tenantID]...)
64 return copiedBlocklist
65}
66
67func (l *List) CompactedMetas(tenantID string) []*backend.CompactedBlockMeta {
68 if tenantID == "" {

Callers 15

retainTenantMethod · 0.45
compactOneTenantMethod · 0.45
TestBlockShardingFunction · 0.45
TestBlockCleanupFunction · 0.45
checkBlocklistsFunction · 0.45
TestNoCompactFlagFunction · 0.45
BlockMetasMethod · 0.45
FindMethod · 0.45
testCompactionRoundtripFunction · 0.45
testSameIDCompactionFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestBlockShardingFunction · 0.36
TestBlockCleanupFunction · 0.36
checkBlocklistsFunction · 0.36
TestNoCompactFlagFunction · 0.36
testCompactionRoundtripFunction · 0.36
testSameIDCompactionFunction · 0.36
TestCompactionMetricsFunction · 0.36