NewCounterVec creates a new CounterVec based on the provided CounterOpts and partitioned by the given label names.
(opts CounterOpts, labelNames []string)
| 192 | // NewCounterVec creates a new CounterVec based on the provided CounterOpts and |
| 193 | // partitioned by the given label names. |
| 194 | func NewCounterVec(opts CounterOpts, labelNames []string) *CounterVec { |
| 195 | return V2.NewCounterVec(CounterVecOpts{ |
| 196 | CounterOpts: opts, |
| 197 | VariableLabels: UnconstrainedLabels(labelNames), |
| 198 | }) |
| 199 | } |
| 200 | |
| 201 | // NewCounterVec creates a new CounterVec based on the provided CounterVecOpts. |
| 202 | func (v2) NewCounterVec(opts CounterVecOpts) *CounterVec { |