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 {
123123 inner * prometheus.CounterVec
124124}
125125
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-
132126// GetMetricWith behaves like prometheus.CounterVec.GetMetricWith but with type-safe labels.
133127func (c * CounterVec [T ]) GetMetricWith (labels T ) (prometheus.Counter , error ) {
134128 return c .inner .GetMetricWith (extractLabelsWithValues (labels ))
135129}
136130
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-
143131// With behaves like prometheus.CounterVec.With but with type-safe labels.
144132func (c * CounterVec [T ]) With (labels T ) prometheus.Counter {
145133 return c .inner .With (extractLabelsWithValues (labels ))
You can’t perform that action at this time.
0 commit comments