MCPcopy Create free account
hub / github.com/cortexproject/cortex / Size

Method Size

pkg/cortexpb/cortex.pb.go:3821–3834  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3819}
3820
3821func (m *Metric) Size() (n int) {
3822 if m == nil {
3823 return 0
3824 }
3825 var l int
3826 _ = l
3827 if len(m.Labels) > 0 {
3828 for _, e := range m.Labels {
3829 l = e.Size()
3830 n += 1 + l + sovCortex(uint64(l))
3831 }
3832 }
3833 return n
3834}
3835
3836func (m *Exemplar) Size() (n int) {
3837 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovCortexFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected