The OpenTelemetry library flushes traces asynchronously, so pending traces can be lost when the application terminates. This adds the OTEL provider to the command context so that clients can call provider.Shutdown() and ensure that all traces are flushed before exiting the program.
The OpenTelemetry library flushes traces asynchronously, so pending traces can be lost when the application terminates. This adds the OTEL provider to the command context so that clients can call
provider.Shutdown()
and ensure that all traces are flushed before exiting the program.Addresses #52