MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
(labels Labels)
| 1299 | // MustCurryWith works as CurryWith but panics where CurryWith would have |
| 1300 | // returned an error. |
| 1301 | func (v *HistogramVec) MustCurryWith(labels Labels) ObserverVec { |
| 1302 | vec, err := v.CurryWith(labels) |
| 1303 | if err != nil { |
| 1304 | panic(err) |
| 1305 | } |
| 1306 | return vec |
| 1307 | } |
| 1308 | |
| 1309 | type constHistogram struct { |
| 1310 | desc *Desc |