remove noisy logs

This commit is contained in:
Caleb Doxsey 2025-02-26 09:40:02 -07:00
parent 1f30dead31
commit 80f685bcc2
2 changed files with 3 additions and 3 deletions

View file

@ -139,7 +139,7 @@ func ShutdownContext(ctx context.Context) error {
if err := sys.tpm.ShutdownAll(context.Background()); err != nil {
errs = append(errs, fmt.Errorf("error shutting down tracer providers: %w", err))
}
if err := sys.exporterServer.Shutdown(context.Background()); err != nil {
if err := sys.exporterServer.Shutdown(context.Background()); err != nil && !errors.Is(err, ErrNoClient) {
errs = append(errs, fmt.Errorf("error shutting down trace exporter: %w", err))
}
return errors.Join(errs...)