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

Function writeNewBlocksForTenant

tempodb/blocklist/poller_test.go:1288–1298  ·  view source on GitHub ↗
(ctx context.Context, b *testing.B, w backend.Writer, tenant string, count int)

Source from the content-addressed store, hash-verified

1286}
1287
1288func writeNewBlocksForTenant(ctx context.Context, b *testing.B, w backend.Writer, tenant string, count int) {
1289 var (
1290 err error
1291 metas = newBlockMetas(count, tenant)
1292 )
1293
1294 for _, m := range metas {
1295 err = w.WriteBlockMeta(ctx, m)
1296 require.NoError(b, err)
1297 }
1298}
1299
1300func newBlockMetas(count int, tenantID string) []*backend.BlockMeta {
1301 metas := make([]*backend.BlockMeta, count)

Callers 1

BenchmarkFullPollerFunction · 0.85

Calls 2

newBlockMetasFunction · 0.85
WriteBlockMetaMethod · 0.65

Tested by

no test coverage detected