mirror of
https://github.com/docker/compose.git
synced 2026-10-12 10:59:50 +00:00
OTel SDK/exporter errors already go through docker/cli's own otel.SetErrorHandler(debug.OTELErrorHandler), installed by the plugin framework at startup. Our own handler, installed at package init time, was always clobbered before any command ran (plugin.Run() sets its handler after all inits execute), so it never had any effect - verified by tracing the exact call order and reproducing the flag behavior against a built binary. Drop that dead handler along with the COMPOSE_OTEL_DEBUG env var it introduced. The one genuinely-discarded error (the tracer shutdown/flush error in wrapRunE) now goes through logrus like everything else in the codebase: it's already gated by --debug/-D via logrus's own level, so no explicit check is needed. Signed-off-by: hiroto.toyoda <[email protected]>