Skip to content

Commit

Permalink
Fix inject span context into request header (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesstocktonj1 authored Apr 14, 2024
1 parent e3d5d99 commit 1d6fb61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jaegertracing/jaegertracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ func TraceWithConfig(config TraceConfig) echo.MiddlewareFunc {
}
}()

// inject Jaeger context into request header
config.Tracer.Inject(sp.Context(), opentracing.HTTPHeaders, opentracing.HTTPHeadersCarrier(c.Request().Header))

// call next middleware / controller
err = next(c)
if err != nil {
Expand Down

0 comments on commit 1d6fb61

Please sign in to comment.