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

Method shouldQuit

modules/frontend/combiner/common.go:298–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296}
297
298func (c *genericCombiner[R]) shouldQuit() bool {
299 if c.httpStatusCode/100 == 5 { // Bail on 5xx
300 return true
301 }
302
303 if c.httpStatusCode/100 == 4 { // Bail on 4xx
304 return true
305 }
306
307 if c.quit != nil && c.quit(c.current) {
308 return true
309 }
310
311 // 2xx
312 return false
313}
314
315func (c *genericCombiner[T]) internalMarshalAs(final T) ([]byte, string, error) {
316 var bodyBytes []byte

Callers 2

ShouldQuitMethod · 0.95
AddResponseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected