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

Function New

tempodb/blocklist/list.go:29–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func New() *List {
30 return &List{
31 metas: make(PerTenant),
32 compactedMetas: make(PerTenantCompacted),
33
34 added: make(PerTenant),
35 removed: make(PerTenant),
36 compactedAdded: make(PerTenantCompacted),
37 compactedRemoved: make(PerTenantCompacted),
38 }
39}
40
41// Tenants returns a slice of tenant ids with metas (compacted metas are ignored.)
42func (l *List) Tenants() []string {

Callers 10

NewFunction · 0.92
TestPollerOwnershipFunction · 0.92
TestTenantDeletionFunction · 0.92
TestApplyPollResultsFunction · 0.70
TestUpdateFunction · 0.70
TestUpdateCompactedFunction · 0.70
TestUpdatesSavedFunction · 0.70
BenchmarkUpdateFunction · 0.70
BenchmarkFullPollerFunction · 0.70
newBlocklistFunction · 0.70

Calls

no outgoing calls

Tested by 9

TestPollerOwnershipFunction · 0.74
TestTenantDeletionFunction · 0.74
TestApplyPollResultsFunction · 0.56
TestUpdateFunction · 0.56
TestUpdateCompactedFunction · 0.56
TestUpdatesSavedFunction · 0.56
BenchmarkUpdateFunction · 0.56
BenchmarkFullPollerFunction · 0.56
newBlocklistFunction · 0.56