MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
(labels Labels)
| 322 | // MustCurryWith works as CurryWith but panics where CurryWith would have |
| 323 | // returned an error. |
| 324 | func (v *CounterVec) MustCurryWith(labels Labels) *CounterVec { |
| 325 | vec, err := v.CurryWith(labels) |
| 326 | if err != nil { |
| 327 | panic(err) |
| 328 | } |
| 329 | return vec |
| 330 | } |
| 331 | |
| 332 | // CounterFunc is a Counter whose value is determined at collect time by calling a |
| 333 | // provided function. |