summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/metrics.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-09-17 17:23:58 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-09-17 17:23:58 -0600
commitc82c231ba7ec7c400e4d48ab943f57a6b29a2a2a (patch)
treef8d7298fd90059ebe694078a5a7d4251e0d953f9 /modules/caddyhttp/metrics.go
parent3ee663dee195e5f8ead7879b31131f46cd0fba13 (diff)
caddyhttp: Remove server name from metrics
For some reason this breaks automatic HTTP->HTTPS redirects. I am not sure why yet, but as a hotfix remove this until we understand it better.
Diffstat (limited to 'modules/caddyhttp/metrics.go')
-rw-r--r--modules/caddyhttp/metrics.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/caddyhttp/metrics.go b/modules/caddyhttp/metrics.go
index dbf1033..2b3b7c7 100644
--- a/modules/caddyhttp/metrics.go
+++ b/modules/caddyhttp/metrics.go
@@ -94,10 +94,6 @@ func serverNameFromContext(ctx context.Context) string {
return srvName
}
-func contextWithServerName(ctx context.Context, serverName string) context.Context {
- return context.WithValue(ctx, ctxKeyServerName{}, serverName)
-}
-
type metricsInstrumentedHandler struct {
labels prometheus.Labels
statusLabels prometheus.Labels