weaveworks/promrus

Add MustNew constructor

marccarre opened this issue · 0 comments

Typical usage is:

hook, err := promrus.NewPrometheusHook()
if err != nil {
    log.Fatalf("...", err) // or panic("...")
}

so it would make sense to wrap this up in a MustNewPrometheusHook function to keep things DRY.