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

Method PushTraces

modules/distributor/receiver/shim_test.go:218–225  ·  view source on GitHub ↗
(ctx context.Context, t ptrace.Traces)

Source from the content-addressed store, hash-verified

216}
217
218func (p *capturingPusher) PushTraces(ctx context.Context, t ptrace.Traces) (*tempopb.PushResponse, error) {
219 p.traces = append(p.traces, t)
220
221 // Ensure that headers from the exporter config are propagated.
222 assert.True(p.t, generator.ExtractNoGenerateMetrics(ctx))
223
224 return &tempopb.PushResponse{}, nil
225}
226
227func (p *capturingPusher) RetryInfoEnabled(_ context.Context) (bool, error) {
228 return p.retryInfoEnabled, nil

Callers

nothing calls this directly

Calls 1

ExtractNoGenerateMetricsFunction · 0.92

Tested by

no test coverage detected