We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b646c75 + cb1808c commit 6041fa3Copy full SHA for 6041fa3
pkg/client/http.go
@@ -24,11 +24,11 @@ func (*HttpCfg) OnUpdate(_, new *HttpCfg) {
24
r.Header.Set(common.HeaderXRequestId, traceID.String())
25
}
26
27
- if len(r.Header.Values(common.HeaderXClientId)) == 0 {
28
- r.Header.Set(common.HeaderXClientId, common.GetServiceClientId())
29
- }
30
return nil
31
})
+ if len(new.C.Header.Values(common.HeaderXClientId)) == 0 {
+ new.C.Header.Set(common.HeaderXClientId, common.GetServiceClientId())
+ }
32
if tracer.Provider() != nil {
33
new.C.SetTransport(otelhttp.NewTransport(new.C.GetClient().Transport))
34
0 commit comments