From d6e9f79ba6e123206cbdbf61f8b7ebd666b319d7 Mon Sep 17 00:00:00 2001 From: keitosuwahara Date: Thu, 24 Jul 2025 07:27:56 +0900 Subject: [PATCH] Integration of SetAttributes calls Signed-off-by: keitosuwahara --- cmd/cmdtrace/cmd_span.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/cmdtrace/cmd_span.go b/cmd/cmdtrace/cmd_span.go index 9226fa13c..e75056c29 100644 --- a/cmd/cmdtrace/cmd_span.go +++ b/cmd/cmdtrace/cmd_span.go @@ -55,8 +55,10 @@ func Setup(cmd *cobra.Command, dockerCli command.Cli, args []string) error { ctx, "cli/"+strings.Join(commandName(cmd), "-"), ) - cmdSpan.SetAttributes(attribute.StringSlice("cli.flags", getFlags(cmd.Flags()))) - cmdSpan.SetAttributes(attribute.Bool("cli.isatty", dockerCli.In().IsTerminal())) + cmdSpan.SetAttributes( + attribute.StringSlice("cli.flags", getFlags(cmd.Flags())), + attribute.Bool("cli.isatty", dockerCli.In().IsTerminal()), + ) cmd.SetContext(ctx) wrapRunE(cmd, cmdSpan, tracingShutdown)