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

Function newAssertingConsumer

modules/distributor/receiver/middleware_test.go:28–33  ·  view source on GitHub ↗
(t *testing.T, assertFunc assertFunc)

Source from the content-addressed store, hash-verified

26}
27
28func newAssertingConsumer(t *testing.T, assertFunc assertFunc) consumer.Traces {
29 return &testConsumer{
30 t: t,
31 assertFunc: assertFunc,
32 }
33}
34
35func (tc *testConsumer) ConsumeTraces(ctx context.Context, _ ptrace.Traces) error {
36 tc.assertFunc(tc.t, ctx)

Callers 2

TestFakeTenantMiddlewareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected