diff options
author | Matt Holt <[email protected]> | 2022-09-16 13:32:49 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-16 13:32:49 -0600 |
commit | 74547f5bedafcb59fc25f14b43301f33a40f9416 (patch) | |
tree | 6ee9a33eda407f03241402cf74d1deeee9676204 /modules/caddyhttp/app.go | |
parent | 258071d857aa8d1524161cb7273f960f24162ce9 (diff) | |
download | caddy-74547f5bedafcb59fc25f14b43301f33a40f9416.tar.gz caddy-74547f5bedafcb59fc25f14b43301f33a40f9416.zip |
caddyhttp: Make metrics opt-in (#5042)
* caddyhttp: Make metrics opt-in
Related to #4644
* Make configurable in Caddyfile
Diffstat (limited to 'modules/caddyhttp/app.go')
-rw-r--r-- | modules/caddyhttp/app.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go index e48f82864..3edc5b23a 100644 --- a/modules/caddyhttp/app.go +++ b/modules/caddyhttp/app.go @@ -263,7 +263,7 @@ func (app *App) Provision(ctx caddy.Context) error { // route handler so that important security checks are done, etc. primaryRoute := emptyHandler if srv.Routes != nil { - err := srv.Routes.ProvisionHandlers(ctx) + err := srv.Routes.ProvisionHandlers(ctx, srv.Metrics) if err != nil { return fmt.Errorf("server %s: setting up route handlers: %v", srvName, err) } |