Skip to content

Commit

Permalink
fix: inject proper context
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed May 11, 2022
1 parent 9dffecc commit 9b80e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (g *Plugin) Middleware(next http.Handler) http.Handler {
defer span.End()

// inject
g.prop.Inject(r.Context(), propagation.HeaderCarrier(r.Header))
g.prop.Inject(ctx, propagation.HeaderCarrier(r.Header))
r = r.WithContext(ctx)
}

Expand Down

0 comments on commit 9b80e4a

Please sign in to comment.