Merge pull request #4978 from laurazard/otel-add-tty

otel: capture whether process was invoked from a terminal
This commit is contained in:
Bjorn Neergaard
2024-04-04 06:09:48 -06:00
committed by GitHub
4 changed files with 119 additions and 14 deletions

View File

@ -310,7 +310,7 @@ func runDocker(ctx context.Context, dockerCli *command.DockerCli) error {
mp := dockerCli.MeterProvider(ctx)
defer mp.Shutdown(ctx)
otel.SetMeterProvider(mp)
command.InstrumentCobraCommands(cmd, mp)
dockerCli.InstrumentCobraCommands(cmd, mp)
var envs []string
args, os.Args, envs, err = processAliases(dockerCli, cmd, args, os.Args)