mirror of
https://github.com/docker/cli.git
synced 2026-11-06 13:10:41 -04:00
OTEL providers provided by this library to plugins were not properly shut down. Metrics from the CLI were forcibly flushed in a separate area and the `buildx` command does its own flushing, but this didn't apply to traces. Add shutdown on post run for plugins using `OnFinalize`. This will allow compose to use the tracer provider from this library rather than roll its own custom one. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>