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

Method sizeError

pkg/model/trace/combine.go:137–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135}
136
137func (c *Combiner) sizeError() error {
138 if c.result == nil || c.maxSizeBytes <= 0 {
139 return nil
140 }
141
142 if c.result.Size() > c.maxSizeBytes {
143 c.maxTraceSizeReached = true
144 return fmt.Errorf("%w (max bytes: %d)", ErrTraceTooLarge, c.maxSizeBytes)
145 }
146
147 return nil
148}
149
150// Result returns the final trace and span count.
151func (c *Combiner) Result() (*tempopb.Trace, int) {

Callers 1

ConsumeWithFinalMethod · 0.95

Calls 1

SizeMethod · 0.65

Tested by

no test coverage detected