mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
Merge pull request #2750 from liubin/fix/2749-remove-fixme
runtime: set tags for trace span
This commit is contained in:
commit
eb248b0c66
@ -35,11 +35,8 @@ func hookLogger() *logrus.Entry {
|
|||||||
func runHook(ctx context.Context, hook specs.Hook, cid, bundlePath string) error {
|
func runHook(ctx context.Context, hook specs.Hook, cid, bundlePath string) error {
|
||||||
span, _ := katatrace.Trace(ctx, hookLogger(), "runHook", hookTracingTags)
|
span, _ := katatrace.Trace(ctx, hookLogger(), "runHook", hookTracingTags)
|
||||||
defer span.End()
|
defer span.End()
|
||||||
|
katatrace.AddTag(span, "path", hook.Path)
|
||||||
// FIXME
|
katatrace.AddTag(span, "args", hook.Args)
|
||||||
// span.LogFields(
|
|
||||||
// log.String("hook-name", hook.Path),
|
|
||||||
// log.String("hook-args", strings.Join(hook.Args, " ")))
|
|
||||||
|
|
||||||
state := specs.State{
|
state := specs.State{
|
||||||
Pid: syscall.Gettid(),
|
Pid: syscall.Gettid(),
|
||||||
|
Loading…
Reference in New Issue
Block a user