| 6480 | } |
| 6481 | |
| 6482 | func (m *Span) Size() (n int) { |
| 6483 | if m == nil { |
| 6484 | return 0 |
| 6485 | } |
| 6486 | var l int |
| 6487 | _ = l |
| 6488 | l = len(m.SpanID) |
| 6489 | if l > 0 { |
| 6490 | n += 1 + l + sovTempo(uint64(l)) |
| 6491 | } |
| 6492 | l = len(m.Name) |
| 6493 | if l > 0 { |
| 6494 | n += 1 + l + sovTempo(uint64(l)) |
| 6495 | } |
| 6496 | if m.StartTimeUnixNano != 0 { |
| 6497 | n += 1 + sovTempo(uint64(m.StartTimeUnixNano)) |
| 6498 | } |
| 6499 | if m.DurationNanos != 0 { |
| 6500 | n += 1 + sovTempo(uint64(m.DurationNanos)) |
| 6501 | } |
| 6502 | if len(m.Attributes) > 0 { |
| 6503 | for _, e := range m.Attributes { |
| 6504 | l = e.Size() |
| 6505 | n += 1 + l + sovTempo(uint64(l)) |
| 6506 | } |
| 6507 | } |
| 6508 | return n |
| 6509 | } |
| 6510 | |
| 6511 | func (m *SearchMetrics) Size() (n int) { |
| 6512 | if m == nil { |