Skip to content

Commit 793c6f1

Browse files
landismglours
authored andcommitted
add cli.isatty attribute to spans generated by compose
Signed-off-by: Matt Landis <[email protected]>
1 parent 8e3e1f7 commit 793c6f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/cmdtrace/cmd_span.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func Setup(cmd *cobra.Command, dockerCli command.Cli, args []string) error {
5656
"cli/"+strings.Join(commandName(cmd), "-"),
5757
)
5858
cmdSpan.SetAttributes(attribute.StringSlice("cli.flags", getFlags(cmd.Flags())))
59+
cmdSpan.SetAttributes(attribute.Bool("cli.isatty", dockerCli.In().IsTerminal()))
5960

6061
cmd.SetContext(ctx)
6162
wrapRunE(cmd, cmdSpan, tracingShutdown)

0 commit comments

Comments
 (0)