feat(http): propagate traceparent for httpclient

Co-authored-by: tronghn <trong.huu.nguyen@nav.no>
This commit is contained in:
Sindre Rødseth Hansen
2025-01-30 14:03:30 +01:00
committed by Trong Huu Nguyen
co-authored by tronghn
parent bf83a58795
commit ca77435d6a
6 changed files with 34 additions and 24 deletions
+1 -2
View File
@@ -14,7 +14,6 @@ import (
"github.com/nais/wonderwall/pkg/handler/acr"
"github.com/nais/wonderwall/pkg/handler/autologin"
mw "github.com/nais/wonderwall/pkg/middleware"
"github.com/nais/wonderwall/pkg/server"
"github.com/nais/wonderwall/pkg/session"
"github.com/nais/wonderwall/pkg/url"
)
@@ -76,7 +75,7 @@ func NewReverseProxy(upstream *urllib.URL, preserveInboundHostHeader bool) *Reve
r.Out.Header.Set("X-Wonderwall-Id-Token", idToken)
}
},
Transport: server.DefaultTransport(),
Transport: httpinternal.Transport(),
}
return &ReverseProxy{
ReverseProxy: rp,