compose/internal/tracing
Milas Bowman e1f8603a62 otel: refactor root command span reporting
* Move all the initialization code out of `main.go`
* Ensure spans are reported when there's an error with the
  command
* Attach the Compose version & active Docker context to the
  resource instead of the span
* Name the root CLI span `cli/<cmd>` for clarity and grab
  the full subcommand path (e.g. `alpha-viz` instead of just
  `viz`)

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2023-06-20 17:25:58 +02:00
..
conn_unix.go trace: add OTEL initialization (#10526) 2023-06-08 16:46:07 -04:00
conn_windows.go trace: add OTEL initialization (#10526) 2023-06-08 16:46:07 -04:00
docker_context.go otel: fix initialization / error-handling (#10717) 2023-06-15 12:43:15 -04:00
errors.go trace: add OTEL initialization (#10526) 2023-06-08 16:46:07 -04:00
mux.go otel: fix initialization / error-handling (#10717) 2023-06-15 12:43:15 -04:00
tracing.go otel: refactor root command span reporting 2023-06-20 17:25:58 +02:00
tracing_test.go trace: add OTEL initialization (#10526) 2023-06-08 16:46:07 -04:00