This commit is contained in:
Kevin Wan
2021-08-17 10:24:12 +08:00
committed by GitHub
parent 7c842f22d0
commit 9c1ee50497
4 changed files with 10 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ func TracingHandler(next http.Handler) http.Handler {
defer span.Finish()
r = r.WithContext(ctx)
// Conveniently track error messages
// conveniently tracking error messages
w.Header().Set(trace.TraceIdKey, span.TraceId())
next.ServeHTTP(w, r)
})