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

Method Send

modules/frontend/search_handlers_test.go:97–104  ·  modules/frontend/search_handlers_test.go::mockGRPCStreaming[T].Send
(r T)

Source from the content-addressed store, hash-verified

95}
96
97func (m *mockGRPCStreaming[T]) Send(r T) error {
98 m.lastResponse.Store(&r)
99 m.responses.Inc()
100 if m.cb != nil {
101 m.cb(int(m.responses.Load()), r)
102 }
103 return nil
104}
105
106func (m *mockGRPCStreaming[T]) Context() context.Context { return m.ctx }
107func (m *mockGRPCStreaming[T]) SendHeader(metadata.MD) error { return nil }

Callers

nothing calls this directly

Calls 2

StoreMethod · 0.65
IncMethod · 0.65

Tested by

no test coverage detected