HTTP Client: Outgoing tracing middleware (#34466)

Following #33439 this adds support for outgoing tracing middleware 
in HTTP client provider.

Fixes #24004
This commit is contained in:
Marcus Efraimsson authored and GitHub committed 2021-05-20 11:16:55 +02:00
1 parent fc8f913761
commit 60d0c8d0ec
5 files changed
+252 -12

No files matched your search

@@ -13,6 +13,6 @@ type testContext struct {
func (c *testContext) createRoundTripper(name string) http.RoundTripper {
return httpclient.RoundTripperFunc(func(req *http.Request) (*http.Response, error) {
c.callChain = append(c.callChain, name)
return &http.Response{StatusCode: http.StatusOK}, nil
return &http.Response{StatusCode: http.StatusOK, Request: req}, nil
})
}