compose/cmd
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
..
compatibility don't skip `compose` used as project name 2023-06-06 10:24:59 +02:00
compose trace: add OTEL initialization (#10526) 2023-06-08 16:46:07 -04:00
formatter Fix: Handle concurrent threads using mutex on the rainbowColor function 2023-01-26 12:53:56 +01:00
main.go trace: add OTEL initialization (#10526) 2023-06-08 16:46:07 -04:00