From 0319e6dd9f57ff4dbf4b77eec15d0f7d2fc1afa8 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 1 Oct 2017 11:24:18 -0700 Subject: [PATCH] middleware: trace: report as https --- internal/middleware/trace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/middleware/trace.go b/internal/middleware/trace.go index ba9aa94..f319e44 100644 --- a/internal/middleware/trace.go +++ b/internal/middleware/trace.go @@ -14,7 +14,7 @@ import ( // Trace adds go stdlib tracing to this http handler. func Trace(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - sp := trace.New(filepath.Base(os.Args[0]+"-http"), r.URL.Scheme+"://"+r.Host+r.RequestURI) + sp := trace.New(filepath.Base(os.Args[0]+"-https"), r.Host+r.RequestURI) defer sp.Finish() ctx, cancel := context.WithTimeout(r.Context(), 30*time.Second) defer cancel()