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

Method ListBlocks

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

ListBlocks returns all blockIDs and compactedBlockIDs for a tenant.

(ctx context.Context, tenant string)

Source from the content-addressed store, hash-verified

67 List(ctx context.Context, keypath KeyPath) ([]string, error)
68 // ListBlocks returns all blockIDs and compactedBlockIDs for a tenant.
69 ListBlocks(ctx context.Context, tenant string) (blockIDs []uuid.UUID, compactedBlockIDs []uuid.UUID, err error)
70 // Find executes the FindFunc for each object in the backend starting at the specified keypath. Collection of these objects is the callers responsibility.
71 Find(ctx context.Context, keypath KeyPath, f FindFunc) error
72 // Read is for streaming entire objects from the backend. There will be an attempt to retrieve this from cache if shouldCache is true.

Callers 8

TestPollerOwnershipFunction · 0.95
BlocksMethod · 0.65
ListBlocksMethod · 0.65
TestListBlocksWithPrefixFunction · 0.65
TestListBlocksWithPrefixFunction · 0.65
TestFixturesFunction · 0.65
TestListBlocksWithPrefixFunction · 0.65
TestReadWriteFunction · 0.65

Implementers 6

MockRawReadertempodb/backend/mocks.go
readerWritertempodb/backend/cache/cache.go
Azuretempodb/backend/azure/azure.go
readerWritertempodb/backend/gcs/gcs.go
readerWritertempodb/backend/s3/s3.go
Backendtempodb/backend/local/local.go

Calls

no outgoing calls

Tested by 6

TestPollerOwnershipFunction · 0.76
TestListBlocksWithPrefixFunction · 0.52
TestListBlocksWithPrefixFunction · 0.52
TestFixturesFunction · 0.52
TestListBlocksWithPrefixFunction · 0.52
TestReadWriteFunction · 0.52