mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-11 17:44:31 +01:00
Merge pull request #2424 from cmaf/fix-span-runHooks-2
tracing: Return context in runHooks() span creation
This commit is contained in:
@@ -95,7 +95,7 @@ func runHook(ctx context.Context, hook specs.Hook, cid, bundlePath string) error
|
||||
}
|
||||
|
||||
func runHooks(ctx context.Context, hooks []specs.Hook, cid, bundlePath, hookType string) error {
|
||||
span, _ := katatrace.Trace(ctx, hookLogger(), "runHooks", hookTracingTags)
|
||||
span, ctx := katatrace.Trace(ctx, hookLogger(), "runHooks", hookTracingTags)
|
||||
katatrace.AddTag(span, "type", hookType)
|
||||
defer span.End()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user