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

Method ShouldQuit

modules/frontend/combiner/trace_by_id.go:175–179  ·  view source on GitHub ↗

ShouldQuit returns true if the response should be returned early.

()

Source from the content-addressed store, hash-verified

173
174// ShouldQuit returns true if the response should be returned early.
175func (c *TraceByIDCombiner) ShouldQuit() bool {
176 c.mu.Lock()
177 defer c.mu.Unlock()
178 return c.shouldQuit()
179}
180
181func (c *TraceByIDCombiner) shouldQuit() bool {
182 if c.code/100 == 5 { // Bail on 5xx

Callers

nothing calls this directly

Calls 1

shouldQuitMethod · 0.95

Tested by

no test coverage detected