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

Function newTenantIndex

tempodb/backend/tenantindex.go:22–28  ·  view source on GitHub ↗
(meta []*BlockMeta, compactedMeta []*CompactedBlockMeta)

Source from the content-addressed store, hash-verified

20)
21
22func newTenantIndex(meta []*BlockMeta, compactedMeta []*CompactedBlockMeta) *TenantIndex {
23 return &TenantIndex{
24 CreatedAt: time.Now(),
25 Meta: meta,
26 CompactedMeta: compactedMeta,
27 }
28}
29
30// marshal converts to json and compresses the bucketindex
31func (b *TenantIndex) marshal() ([]byte, error) {

Callers 4

makeTestTenantIndexFunction · 0.85
WriteTenantIndexMethod · 0.85
TestReaderFunction · 0.85
TestTenantIndexFallbackFunction · 0.85

Calls 1

NowMethod · 0.65

Tested by 3

makeTestTenantIndexFunction · 0.68
TestReaderFunction · 0.68
TestTenantIndexFallbackFunction · 0.68