Skip to content

Commit bba49a2

Browse files
mgutijaealdas
authored andcommitted
Body NewRequest
Add body on NewRequest, not nil
1 parent 5f12f87 commit bba49a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jaegertracing/jaegertracing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func CreateChildSpan(ctx echo.Context, name string) opentracing.Span {
316316

317317
// NewTracedRequest generates a new traced HTTP request with opentracing headers injected into it
318318
func NewTracedRequest(method string, url string, body io.Reader, span opentracing.Span) (*http.Request, error) {
319-
req, err := http.NewRequest(method, url, nil)
319+
req, err := http.NewRequest(method, url, body)
320320
if err != nil {
321321
panic(err.Error())
322322
}

0 commit comments

Comments
 (0)