From 75a4f1a5472ffd780fed43a7395a191ed495c6e9 Mon Sep 17 00:00:00 2001 From: Matt Bonnell <64976795+mbonnell-wish@users.noreply.github.com> Date: Sun, 31 Jan 2021 08:05:15 -0500 Subject: [PATCH] feat: add Prometheus monitoring to Public APIs (#1022) --- cmd/daemon/serve.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/daemon/serve.go b/cmd/daemon/serve.go index bbaa5e49fee0..dfdc48eff12e 100644 --- a/cmd/daemon/serve.go +++ b/cmd/daemon/serve.go @@ -91,6 +91,7 @@ func ServePublic(r driver.Registry, wg *sync.WaitGroup, cmd *cobra.Command, args r.RegisterPublicRoutes(router) n.Use(reqlog.NewMiddlewareFromLogger(l, "public#"+c.SelfPublicURL().String())) n.Use(sqa(cmd, r)) + n.Use(r.PrometheusManager()) if tracer := r.Tracer(cmd.Context()); tracer.IsLoaded() { n.Use(tracer)