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

Function MakeProtoSpans

pkg/util/test/proto.go:5–11  ·  view source on GitHub ↗
(count int)

Source from the content-addressed store, hash-verified

3import v1 "go.opentelemetry.io/proto/otlp/trace/v1"
4
5func MakeProtoSpans(count int) []*v1.ResourceSpans {
6 spans := make([]*v1.ResourceSpans, 0)
7 for i := 0; i < count; i++ {
8 spans = append(spans, MakeProtoSpan())
9 }
10 return spans
11}
12
13func MakeProtoSpan() *v1.ResourceSpans {
14 return &v1.ResourceSpans{

Callers 1

TestOTLPLimitsFunction · 0.92

Calls 1

MakeProtoSpanFunction · 0.85

Tested by 1

TestOTLPLimitsFunction · 0.74