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

Method stopIncomingRequests

modules/generator/generator.go:181–183  ·  modules/generator/generator.go::Generator.stopIncomingRequests

stopIncomingRequests marks the generator as read-only, refusing push requests

()

Source from the content-addressed store, hash-verified

179
180// stopIncomingRequests marks the generator as read-only, refusing push requests
181func (g *Generator) stopIncomingRequests() {
182 g.readOnly.Store(true)
183}
184
185func (g *Generator) PushSpans(ctx context.Context, req *tempopb.PushSpansRequest) (*tempopb.PushResponse, error) {
186 if g.readOnly.Load() {

Callers 1

stoppingMethod · 0.95

Calls 1

StoreMethod · 0.65

Tested by

no test coverage detected