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

Function countFlushedTraces

modules/blockbuilder/blockbuilder_test.go:1054–1060  ·  view source on GitHub ↗
(store storage.Store)

Source from the content-addressed store, hash-verified

1052func (m *mockOverrides) DedicatedColumns(_ string) backend.DedicatedColumns { return m.dc }
1053
1054func countFlushedTraces(store storage.Store) int {
1055 count := 0
1056 for _, meta := range store.BlockMetas(util.FakeTenantID) {
1057 count += int(meta.TotalObjects)
1058 }
1059 return count
1060}
1061
1062func generateTraceID(t testing.TB) []byte {
1063 traceID := make([]byte, 16)

Calls 1

BlockMetasMethod · 0.65

Tested by

no test coverage detected