File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -123,23 +123,11 @@ type CounterVec[T LabelsProviderMarker] struct {
123
123
inner * prometheus.CounterVec
124
124
}
125
125
126
- // GetMetricWithLabelValues covers prometheus.CounterVec.GetMetricWithLabelValues
127
- // Deprecated: Use GetMetricWith() instead. We can't provide a []string safe implementation in promsafe
128
- func (c * CounterVec [T ]) GetMetricWithLabelValues (_ ... string ) (prometheus.Counter , error ) {
129
- panic ("There can't be a SAFE GetMetricWithLabelValues(). Use GetMetricWith() instead" )
130
- }
131
-
132
126
// GetMetricWith behaves like prometheus.CounterVec.GetMetricWith but with type-safe labels.
133
127
func (c * CounterVec [T ]) GetMetricWith (labels T ) (prometheus.Counter , error ) {
134
128
return c .inner .GetMetricWith (extractLabelsWithValues (labels ))
135
129
}
136
130
137
- // WithLabelValues covers like prometheus.CounterVec.WithLabelValues.
138
- // Deprecated: Use With() instead. We can't provide a []string safe implementation in promsafe
139
- func (c * CounterVec [T ]) WithLabelValues (_ ... string ) prometheus.Counter {
140
- panic ("There can't be a SAFE WithLabelValues(). Use With() instead" )
141
- }
142
-
143
131
// With behaves like prometheus.CounterVec.With but with type-safe labels.
144
132
func (c * CounterVec [T ]) With (labels T ) prometheus.Counter {
145
133
return c .inner .With (extractLabelsWithValues (labels ))
You can’t perform that action at this time.
0 commit comments