DedupedSpans returns the total number of duplicate spans that were removed across all traces. Returns an error if the iterator has not been fully exhausted.
()
| 176 | // DedupedSpans returns the total number of duplicate spans that were removed |
| 177 | // across all traces. Returns an error if the iterator has not been fully exhausted. |
| 178 | func (i *liveTracesIter) DedupedSpans() (uint32, error) { |
| 179 | i.mtx.Lock() |
| 180 | defer i.mtx.Unlock() |
| 181 | |
| 182 | if !i.exhausted { |
| 183 | return 0, errors.New("iterator must be exhausted before calling DedupedSpans") |
| 184 | } |
| 185 | return i.dedupedSpans, nil |
| 186 | } |
| 187 | |
| 188 | func (i *liveTracesIter) Close() { |
| 189 | i.cancel() |
no outgoing calls