mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
runtime: correct span name for stopSandbox function
Normally the span name should be the same as function name, so chagne `StopVM` to `stopSandbox`. Fixes: #3217 Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
parent
e091409404
commit
33f343ee08
@ -908,7 +908,7 @@ func setupStorages(ctx context.Context, sandbox *Sandbox) []*grpc.Storage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (k *kataAgent) stopSandbox(ctx context.Context, sandbox *Sandbox) error {
|
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()
|
defer span.End()
|
||||||
|
|
||||||
req := &grpc.DestroySandboxRequest{}
|
req := &grpc.DestroySandboxRequest{}
|
||||||
|
Loading…
Reference in New Issue
Block a user