caddy/modules
Dave Henderson d16ede358a
metrics: Fix hidden panic while observing with bad exemplars (#3733)
* metrics: Fixing panic while observing with bad exemplars

Signed-off-by: Dave Henderson <dhenderson@gmail.com>

* Minor cleanup

The server is already added to the context. So, we can simply use that
to get the server name, which is a field on the server.

* Add integration test for auto HTTP->HTTPS redirects

A test like this would have caught the problem in the first place

Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
2020-09-17 21:46:24 -06:00
..
caddyhttp metrics: Fix hidden panic while observing with bad exemplars (#3733) 2020-09-17 21:46:24 -06:00
caddypki caddypki: Add 'acme_server' Caddyfile directive 2020-06-03 09:59:36 -06:00
caddytls caddytls: Fix resolvers option of acme issuer (Caddyfile) 2020-09-09 10:21:59 -06:00
filestorage httpcaddyfile: Minor fixes to parsing storage options 2020-05-01 09:34:32 -06:00
logging logging: Implement Caddyfile support for filter encoder (#3578) 2020-09-15 12:37:41 -06:00
metrics metrics: Initial integration of Prometheus metrics (#3709) 2020-09-17 12:01:20 -06:00
standard metrics: Initial integration of Prometheus metrics (#3709) 2020-09-17 12:01:20 -06:00