Merge pull request #3218 from liubin/fix/3217-fix-span-name

runtime: correct span name for stopSandbox function
This commit is contained in:
Chelsea Mafrica
2021-12-07 16:36:14 -08:00
committed by GitHub

View File

@@ -908,7 +908,7 @@ func setupStorages(ctx context.Context, sandbox *Sandbox) []*grpc.Storage {
}
func (k *kataAgent) stopSandbox(ctx context.Context, sandbox *Sandbox) error {
span, ctx := katatrace.Trace(ctx, k.Logger(), "StopVM", kataAgentTracingTags)
span, ctx := katatrace.Trace(ctx, k.Logger(), "stopSandbox", kataAgentTracingTags)
defer span.End()
req := &grpc.DestroySandboxRequest{}