compose/cmd/compose
Milas Bowman 3c8a56dbf3
trace: add OTEL initialization (#10526)
This is a bunch of OTEL initialization code. It's all in
`internal/` because there are re-usable parts here, but Compose
isn't the right spot. Once we've stabilized the interfaces a bit
and the need arises, we can move it to a separate module.

Currently, a single span is produced to wrap the root Compose
command.

Compose will respect the standard OTEL environment variables
as well as OTEL metadata from the Docker context. Both can be
used simultaneously. The latter is intended for local system
integration and is restricted to Unix sockets / named pipes.

None of this is enabled by default. It requires setting the
`COMPOSE_EXPERIMENTAL_OTEL=1` environment variable to
gate it during development.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-06-08 16:46:07 -04:00
..
alpha.go move dry-run support from alpha to main command 2023-05-15 09:39:46 +02:00
build.go restore support for --memory 2023-04-25 15:41:08 +02:00
completion.go update projectOptions to be public by renaming it to ProjectOptions 2022-12-20 08:53:27 +01:00
compose.go fix support for project name set by COMPOSE_PROJECT_NAME env var 2023-05-22 19:14:57 +02:00
compose_test.go add support for restart for depends_on 2023-02-18 12:55:29 +01:00
config.go introduce --no-path-resolution to skip relative path to be resolved 2023-05-16 13:02:56 +02:00
cp.go update projectOptions to be public by renaming it to ProjectOptions 2022-12-20 08:53:27 +01:00
create.go Add --scale to compose create, refactor scale option 2023-01-26 13:03:34 +01:00
down.go fix display of volumes flag in down help command 2023-05-24 22:11:58 +02:00
events.go don't assume os.Stdout and rely on dockerCLI.streams 2022-12-20 23:52:25 +01:00
exec.go don't assume os.Stdout and rely on dockerCLI.streams 2022-12-20 23:52:25 +01:00
images.go don't assume os.Stdout and rely on dockerCLI.streams 2022-12-20 23:52:25 +01:00
kill.go parallel flag belong do top-level "compose" cobra command, not the current one 2023-05-15 20:57:09 +02:00
list.go don't assume os.Stdout and rely on dockerCLI.streams 2022-12-20 23:52:25 +01:00
logs.go alias -n for --tail to align with docker CLI 2023-01-26 10:00:58 +01:00
pause.go update projectOptions to be public by renaming it to ProjectOptions 2022-12-20 08:53:27 +01:00
port.go don't assume os.Stdout and rely on dockerCLI.streams 2022-12-20 23:52:25 +01:00
ps.go check service names based on project, not running containers 2022-12-21 21:11:44 +01:00
ps_test.go don't assume os.Stdout and rely on dockerCLI.streams 2022-12-20 23:52:25 +01:00
pull.go update compose-go 2023-03-01 17:14:53 +01:00
push.go update compose-go 2023-03-01 17:14:53 +01:00
remove.go workaround race condition in ContainerList 2023-03-28 12:28:41 +02:00
restart.go update compose-go 2023-03-01 17:14:53 +01:00
run.go parallel flag belong do top-level "compose" cobra command, not the current one 2023-05-15 20:57:09 +02:00
start.go update projectOptions to be public by renaming it to ProjectOptions 2022-12-20 08:53:27 +01:00
stop.go update projectOptions to be public by renaming it to ProjectOptions 2022-12-20 08:53:27 +01:00
top.go don't assume os.Stdout and rely on dockerCLI.streams 2022-12-20 23:52:25 +01:00
up.go parallel flag belong do top-level "compose" cobra command, not the current one 2023-05-15 20:57:09 +02:00
up_test.go Add --scale to compose create, refactor scale option 2023-01-26 13:03:34 +01:00
version.go progress writer uses dockercli.Err stream 2023-03-15 09:47:13 +01:00
viz.go Added tests to viz subcommand 2023-04-24 12:18:37 +02:00
viz_test.go Added tests to viz subcommand 2023-04-24 12:18:37 +02:00
watch.go introduce experimental watch command (skeletton) 2023-01-12 10:52:58 +01:00