Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
rbarazzutti committed Aug 14, 2023
1 parent d69faa3 commit 9669e3b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/webclientimpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,12 @@ func (webClient *webClientImpl) DoMeasure(followRedirect bool) *HTTPMeasure {
},
}

ctx := WithTrace(context.Background(), http3ClientTrace)

ctxx := sockettrace.WithTrace(ctx, connTrace)

traceCtx := httptrace.WithClientTrace(ctxx, clientTrace)
traceCtx :=
httptrace.WithClientTrace(
sockettrace.WithTrace(
WithTrace(context.Background(), http3ClientTrace),
connTrace),
clientTrace)

req = req.WithContext(traceCtx)

Expand Down

0 comments on commit 9669e3b

Please sign in to comment.