Skip to content

Commit d6e9f79

Browse files
suwakeindeloof
authored andcommitted
Integration of SetAttributes calls
Signed-off-by: keitosuwahara <[email protected]>
1 parent b4c44a4 commit d6e9f79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/cmdtrace/cmd_span.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ func Setup(cmd *cobra.Command, dockerCli command.Cli, args []string) error {
5555
ctx,
5656
"cli/"+strings.Join(commandName(cmd), "-"),
5757
)
58-
cmdSpan.SetAttributes(attribute.StringSlice("cli.flags", getFlags(cmd.Flags())))
59-
cmdSpan.SetAttributes(attribute.Bool("cli.isatty", dockerCli.In().IsTerminal()))
58+
cmdSpan.SetAttributes(
59+
attribute.StringSlice("cli.flags", getFlags(cmd.Flags())),
60+
attribute.Bool("cli.isatty", dockerCli.In().IsTerminal()),
61+
)
6062

6163
cmd.SetContext(ctx)
6264
wrapRunE(cmd, cmdSpan, tracingShutdown)

0 commit comments

Comments
 (0)