Skip to content

Commit

Permalink
feat: add Prometheus monitoring to Public APIs (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonnell-wish authored Jan 31, 2021
1 parent f44cced commit 75a4f1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/daemon/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75a4f1a

Please sign in to comment.