Skip to content

Commit

Permalink
πŸ”„ Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Dec 10, 2024
1 parent 5b52683 commit 9be974b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/otelmiddleware/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9be974b

Please sign in to comment.