()
| 3819 | } |
| 3820 | |
| 3821 | func (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 | |
| 3836 | func (m *Exemplar) Size() (n int) { |
| 3837 | if m == nil { |