File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,6 @@ var noopCounterVec = &prometheus.CounterVec{}
207
207
var noopHistogramVec = & prometheus.HistogramVec {}
208
208
var noopTimingHistogramVec = & promext.TimingHistogramVec {}
209
209
var noopGaugeVec = & prometheus.GaugeVec {}
210
- var noopObserverVec = & noopObserverVector {}
211
210
212
211
// just use a convenience struct for all the no-ops
213
212
var noop = & noopMetric {}
@@ -226,22 +225,3 @@ func (noopMetric) Desc() *prometheus.Desc { return nil }
226
225
func (noopMetric ) Write (* dto.Metric ) error { return nil }
227
226
func (noopMetric ) Describe (chan <- * prometheus.Desc ) {}
228
227
func (noopMetric ) Collect (chan <- prometheus.Metric ) {}
229
-
230
- type noopObserverVector struct {}
231
-
232
- func (noopObserverVector ) GetMetricWith (prometheus.Labels ) (prometheus.Observer , error ) {
233
- return noop , nil
234
- }
235
- func (noopObserverVector ) GetMetricWithLabelValues (... string ) (prometheus.Observer , error ) {
236
- return noop , nil
237
- }
238
- func (noopObserverVector ) With (prometheus.Labels ) prometheus.Observer { return noop }
239
- func (noopObserverVector ) WithLabelValues (... string ) prometheus.Observer { return noop }
240
- func (noopObserverVector ) CurryWith (prometheus.Labels ) (prometheus.ObserverVec , error ) {
241
- return noopObserverVec , nil
242
- }
243
- func (noopObserverVector ) MustCurryWith (prometheus.Labels ) prometheus.ObserverVec {
244
- return noopObserverVec
245
- }
246
- func (noopObserverVector ) Describe (chan <- * prometheus.Desc ) {}
247
- func (noopObserverVector ) Collect (chan <- prometheus.Metric ) {}
You can’t perform that action at this time.
0 commit comments