From 9b80e4a9bcfd4487bbcad22c955ec7ae57cde0e0 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 11 May 2022 12:37:24 +0200 Subject: [PATCH] fix: inject proper context Signed-off-by: Valery Piashchynski --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index f1b334b..35b1b16 100644 --- a/plugin.go +++ b/plugin.go @@ -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) }