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

Function MakeTraceWithSpanCount

pkg/util/test/req.go:266–276  ·  view source on GitHub ↗
(requests int, spansEach int, traceID []byte)

Source from the content-addressed store, hash-verified

264}
265
266func MakeTraceWithSpanCount(requests int, spansEach int, traceID []byte) *tempopb.Trace {
267 trace := &tempopb.Trace{
268 ResourceSpans: make([]*v1_trace.ResourceSpans, 0),
269 }
270
271 for range requests {
272 trace.ResourceSpans = append(trace.ResourceSpans, MakeBatch(spansEach, traceID))
273 }
274
275 return trace
276}
277
278var (
279 dedicatedColumnsResource = backend.DedicatedColumns{

Callers 15

BenchmarkCombineFunction · 0.92
BenchmarkSortTraceFunction · 0.92
BenchmarkProtoToParquetFunction · 0.92
BenchmarkDeconstructFunction · 0.92
createTestBlockFunction · 0.92
TestCountSpansFunction · 0.92
BenchmarkCombineFunction · 0.92
BenchmarkSortTraceFunction · 0.92
BenchmarkProtoToParquetFunction · 0.92
BenchmarkDeconstructFunction · 0.92
createTestBlockFunction · 0.92
TestCountSpansFunction · 0.92

Calls 1

MakeBatchFunction · 0.85

Tested by 15

BenchmarkCombineFunction · 0.74
BenchmarkSortTraceFunction · 0.74
BenchmarkProtoToParquetFunction · 0.74
BenchmarkDeconstructFunction · 0.74
createTestBlockFunction · 0.74
TestCountSpansFunction · 0.74
BenchmarkCombineFunction · 0.74
BenchmarkSortTraceFunction · 0.74
BenchmarkProtoToParquetFunction · 0.74
BenchmarkDeconstructFunction · 0.74
createTestBlockFunction · 0.74
TestCountSpansFunction · 0.74