mirror of
https://github.com/docker/compose.git
synced 2025-07-27 23:54:04 +02:00
Integration of SetAttributes calls
Signed-off-by: keitosuwahara <keitosuwahara0816@gmail.com>
This commit is contained in:
parent
b4c44a431f
commit
d6e9f79ba6
@ -55,8 +55,10 @@ func Setup(cmd *cobra.Command, dockerCli command.Cli, args []string) error {
|
|||||||
ctx,
|
ctx,
|
||||||
"cli/"+strings.Join(commandName(cmd), "-"),
|
"cli/"+strings.Join(commandName(cmd), "-"),
|
||||||
)
|
)
|
||||||
cmdSpan.SetAttributes(attribute.StringSlice("cli.flags", getFlags(cmd.Flags())))
|
cmdSpan.SetAttributes(
|
||||||
cmdSpan.SetAttributes(attribute.Bool("cli.isatty", dockerCli.In().IsTerminal()))
|
attribute.StringSlice("cli.flags", getFlags(cmd.Flags())),
|
||||||
|
attribute.Bool("cli.isatty", dockerCli.In().IsTerminal()),
|
||||||
|
)
|
||||||
|
|
||||||
cmd.SetContext(ctx)
|
cmd.SetContext(ctx)
|
||||||
wrapRunE(cmd, cmdSpan, tracingShutdown)
|
wrapRunE(cmd, cmdSpan, tracingShutdown)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user