From bba49a2aff04f347371f9e29f0c6461cce102827 Mon Sep 17 00:00:00 2001 From: mgutijae <45961609+mgutijae@users.noreply.github.com> Date: Thu, 27 Jan 2022 08:08:17 +0100 Subject: [PATCH] Body NewRequest Add body on NewRequest, not nil --- jaegertracing/jaegertracing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaegertracing/jaegertracing.go b/jaegertracing/jaegertracing.go index 123d635..0eb2c3c 100644 --- a/jaegertracing/jaegertracing.go +++ b/jaegertracing/jaegertracing.go @@ -316,7 +316,7 @@ func CreateChildSpan(ctx echo.Context, name string) opentracing.Span { // NewTracedRequest generates a new traced HTTP request with opentracing headers injected into it func NewTracedRequest(method string, url string, body io.Reader, span opentracing.Span) (*http.Request, error) { - req, err := http.NewRequest(method, url, nil) + req, err := http.NewRequest(method, url, body) if err != nil { panic(err.Error()) }