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

Function marshalBatches

pkg/ingest/encoding_test.go:199–208  ·  view source on GitHub ↗
(t testing.TB, batches []*v1.ResourceSpans)

Source from the content-addressed store, hash-verified

197}
198
199func marshalBatches(t testing.TB, batches []*v1.ResourceSpans) []byte {
200 t.Helper()
201
202 trace := tempopb.Trace{ResourceSpans: batches}
203
204 m, err := trace.Marshal()
205 require.NoError(t, err)
206
207 return m
208}
209
210func BenchmarkGeneratorDecoderPushBytes(b *testing.B) {
211 stream := generateRequest(1000, 200)

Callers 1

Calls 1

MarshalMethod · 0.95

Tested by

no test coverage detected