From 14ea88f3e63473c936134ce2f9cee8998997de5d Mon Sep 17 00:00:00 2001 From: Allan Guwatudde Date: Wed, 4 Dec 2024 17:52:02 +0300 Subject: [PATCH] Don't shutdown logger --- otel/otel.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/otel/otel.go b/otel/otel.go index 0217cc10..f45e0d49 100644 --- a/otel/otel.go +++ b/otel/otel.go @@ -109,8 +109,6 @@ func BuildLogProvider() *otelLogSdk.LoggerProvider { otelLogSdk.WithProcessor(otelLogSdk.NewBatchProcessor(exporter)), ) - defer func() { _ = loggerProvider.Shutdown(context.Background()) }() - return loggerProvider }