| 36 | ) |
| 37 | |
| 38 | type CircularExemplarStorage struct { |
| 39 | lock sync.RWMutex |
| 40 | exemplars []circularBufferEntry |
| 41 | nextIndex int |
| 42 | metrics *ExemplarMetrics |
| 43 | oooTimeWindowMillis int64 |
| 44 | |
| 45 | // Map of series labels as a string to index entry, which points to the first |
| 46 | // and last exemplar for the series in the exemplars circular buffer. |
| 47 | index map[string]*indexEntry |
| 48 | } |
| 49 | |
| 50 | type indexEntry struct { |
| 51 | oldest int |
nothing calls this directly
no outgoing calls
no test coverage detected