(lbls labels.Labels, value float64, traceID string, multiplier float64)
| 96 | } |
| 97 | |
| 98 | func (h *histogram) ObserveWithExemplar(lbls labels.Labels, value float64, traceID string, multiplier float64) { |
| 99 | hash := lbls.Hash() |
| 100 | |
| 101 | h.seriesDemand.Insert(hash) |
| 102 | |
| 103 | h.seriesMtx.Lock() |
| 104 | defer h.seriesMtx.Unlock() |
| 105 | |
| 106 | s, lbls, hash := resolveSeries(h.series, hash, lbls, h.lifecycler, h.activeSeriesPerHistogramSerie()) |
| 107 | if s != nil { |
| 108 | h.updateSeries(hash, s, value, traceID, multiplier) |
| 109 | return |
| 110 | } |
| 111 | h.series[hash] = h.newSeries(lbls, value, traceID, multiplier) |
| 112 | } |
| 113 | |
| 114 | func (h *histogram) newSeries(lbls labels.Labels, value float64, traceID string, multiplier float64) *histogramSeries { |
| 115 | newSeries := &histogramSeries{ |
nothing calls this directly
no test coverage detected