mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 02:56:18 +00:00
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. Backport of #2662 Fixes #2663 Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
parent
a97c9063db
commit
98c2ca13c1
@ -911,7 +911,7 @@ func (s *service) Shutdown(ctx context.Context, r *taskAPI.ShutdownRequest) (_ *
|
|||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
|
|
||||||
span.End()
|
span.End()
|
||||||
katatrace.StopTracing(s.ctx)
|
katatrace.StopTracing(s.rootCtx)
|
||||||
|
|
||||||
s.cancel()
|
s.cancel()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user