attach context with span to *http.Request

pull/9213/head
bergquist 8 years ago
parent 3c8133aa4b
commit d55b49b7b7
  1. 2
      pkg/middleware/request_tracing.go

@ -22,7 +22,7 @@ func RequestTracing() macaron.Handler {
defer span.Finish()
ctx := opentracing.ContextWithSpan(req.Context(), span)
req = req.WithContext(ctx)
c.Req.Request = req.WithContext(ctx)
c.Next()

Loading…
Cancel
Save