Commit d55b49b7 by bergquist

attach context with span to *http.Request

parent 3c8133aa
...@@ -22,7 +22,7 @@ func RequestTracing() macaron.Handler { ...@@ -22,7 +22,7 @@ func RequestTracing() macaron.Handler {
defer span.Finish() defer span.Finish()
ctx := opentracing.ContextWithSpan(req.Context(), span) ctx := opentracing.ContextWithSpan(req.Context(), span)
req = req.WithContext(ctx) c.Req.Request = req.WithContext(ctx)
c.Next() c.Next()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment