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

Method Size

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

Source from the content-addressed store, hash-verified

6833}
6834
6835func (m *Trace) Size() (n int) {
6836 if m == nil {
6837 return 0
6838 }
6839 var l int
6840 _ = l
6841 if len(m.ResourceSpans) > 0 {
6842 for _, e := range m.ResourceSpans {
6843 l = e.Size()
6844 n += 1 + l + sovTempo(uint64(l))
6845 }
6846 }
6847 return n
6848}
6849
6850func (m *PushResponse) Size() (n int) {
6851 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovTempoFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected