Skip to content

Commit

Permalink
Don't shutdown logger
Browse files Browse the repository at this point in the history
  • Loading branch information
AGMETEOR committed Dec 4, 2024
1 parent d7bc4cd commit 14ea88f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions otel/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ func BuildLogProvider() *otelLogSdk.LoggerProvider {
otelLogSdk.WithProcessor(otelLogSdk.NewBatchProcessor(exporter)),
)

defer func() { _ = loggerProvider.Shutdown(context.Background()) }()

return loggerProvider
}

Expand Down

0 comments on commit 14ea88f

Please sign in to comment.