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

Method Size

pkg/tempopb/tempo.pb.go:6511–6539  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6509}
6510
6511func (m *SearchMetrics) Size() (n int) {
6512 if m == nil {
6513 return 0
6514 }
6515 var l int
6516 _ = l
6517 if m.InspectedTraces != 0 {
6518 n += 1 + sovTempo(uint64(m.InspectedTraces))
6519 }
6520 if m.InspectedBytes != 0 {
6521 n += 1 + sovTempo(uint64(m.InspectedBytes))
6522 }
6523 if m.TotalBlocks != 0 {
6524 n += 1 + sovTempo(uint64(m.TotalBlocks))
6525 }
6526 if m.CompletedJobs != 0 {
6527 n += 1 + sovTempo(uint64(m.CompletedJobs))
6528 }
6529 if m.TotalJobs != 0 {
6530 n += 1 + sovTempo(uint64(m.TotalJobs))
6531 }
6532 if m.TotalBlockBytes != 0 {
6533 n += 1 + sovTempo(uint64(m.TotalBlockBytes))
6534 }
6535 if m.InspectedSpans != 0 {
6536 n += 1 + sovTempo(uint64(m.InspectedSpans))
6537 }
6538 return n
6539}
6540
6541func (m *SearchTagsRequest) Size() (n int) {
6542 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovTempoFunction · 0.85

Tested by

no test coverage detected