From 396b19a1a69b9a243912a42b2dc3a0b802837c91 Mon Sep 17 00:00:00 2001 From: Liam White Date: Sun, 22 Mar 2020 04:57:46 -0700 Subject: [PATCH] continue on error by default Signed-off-by: Liam White --- prometheus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus.go b/prometheus.go index 410f319..d2e11fd 100644 --- a/prometheus.go +++ b/prometheus.go @@ -60,7 +60,7 @@ func New(o Options) (*Exporter, error) { options: o, gatherer: o.Registry, collector: collector, - handler: promhttp.HandlerFor(o.Registry, promhttp.HandlerOpts{}), + handler: promhttp.HandlerFor(o.Registry, promhttp.HandlerOpts{ErrorHandling: promhttp.ContinueOnError}), } return exp, nil }