runtime: tracing: Use root context to stop tracing

Call StopTracing with s.rootCtx, which is the root context for tracing,
instead of s.ctx, which is parent to a subset of trace spans.

Fixes #2661

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
Chelsea Mafrica 2021-09-16 11:10:02 -07:00
parent fff82b4ef5
commit 39cd05e0bb

View File

@ -940,7 +940,7 @@ func (s *service) Shutdown(ctx context.Context, r *taskAPI.ShutdownRequest) (_ *
s.mu.Unlock()
span.End()
katatrace.StopTracing(s.ctx)
katatrace.StopTracing(s.rootCtx)
s.cancel()