From 9be974b77bb3d39ae96430936bd75fa608b56fae Mon Sep 17 00:00:00 2001 From: "mojo-machine[bot]" <111131124+mojo-machine[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:10:28 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Sync=20from=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/wearemojo/mojo/commit/4573664274ee6b90257f52ed93e27c062374badc --- lib/otelmiddleware/headers.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/otelmiddleware/headers.go b/lib/otelmiddleware/headers.go index d07d25b..f967e9f 100644 --- a/lib/otelmiddleware/headers.go +++ b/lib/otelmiddleware/headers.go @@ -11,18 +11,6 @@ const ( headerKeyLogsURL = "Trace-Logs-Url" ) -func TraceID(next http.Handler) http.Handler { - return http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { - traceID := getTraceID(req) - - if traceID != "" { - res.Header().Set(headerKeyID, traceID) - } - - next.ServeHTTP(res, req) - }) -} - func TraceIDWithGCPURLs(gcpProjectID string) func(next http.Handler) http.Handler { return func(next http.Handler) http.Handler { return http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {