diff --git a/net/http/roundtripware/dump.go b/net/http/roundtripware/dump.go index 51c5131..2148917 100644 --- a/net/http/roundtripware/dump.go +++ b/net/http/roundtripware/dump.go @@ -29,6 +29,7 @@ func DumpRequest() RoundTripware { if span.IsRecording() { span.AddEvent("DumpRequest") } + dumpRequest(r) return next(r) diff --git a/net/http/roundtripware/referer.go b/net/http/roundtripware/referer.go index 45a59f9..4a3693c 100644 --- a/net/http/roundtripware/referer.go +++ b/net/http/roundtripware/referer.go @@ -54,6 +54,7 @@ func Referer(opts ...RefererOption) RoundTripware { if span.IsRecording() { span.SetAttributes(semconv.HTTPRequestHeader(strings.ToLower(o.Header), value)) } + r.Header.Set(o.Header, value) } } diff --git a/net/http/roundtripware/requestid.go b/net/http/roundtripware/requestid.go index c013521..2aac724 100644 --- a/net/http/roundtripware/requestid.go +++ b/net/http/roundtripware/requestid.go @@ -74,6 +74,7 @@ func RequestID(opts ...RequestIDOption) RoundTripware { if span.IsRecording() { span.SetAttributes(semconv.HTTPRequestHeader(strings.ToLower(o.Header), requestID)) } + r.Header.Set(o.Header, requestID) } } diff --git a/net/http/roundtripware/sessionid.go b/net/http/roundtripware/sessionid.go index 9ac8fc1..f7d7dda 100644 --- a/net/http/roundtripware/sessionid.go +++ b/net/http/roundtripware/sessionid.go @@ -54,6 +54,7 @@ func SessionID(opts ...SessionIDOption) RoundTripware { if span.IsRecording() { span.SetAttributes(semconv.SessionID(value)) } + r.Header.Set(o.Header, value) } } diff --git a/net/http/roundtripware/trackingid.go b/net/http/roundtripware/trackingid.go index db5f4b3..3f2e763 100644 --- a/net/http/roundtripware/trackingid.go +++ b/net/http/roundtripware/trackingid.go @@ -55,6 +55,7 @@ func TrackingID(opts ...TrackingIDOption) RoundTripware { if span.IsRecording() { span.SetAttributes(semconv.HTTPRequestHeader(strings.ToLower(o.Header), value)) } + r.Header.Set(o.Header, value) } }