From baeb560673c8ff82789dbdeaaad525418c70337f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Tue, 23 Apr 2024 20:19:05 +0200 Subject: [PATCH] sdk/log: Fix doc for LoggerProvider.ForceFlush and LoggerProvider.Shutdown (#5259) --- sdk/log/provider.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/log/provider.go b/sdk/log/provider.go index a7b53500e4b..654219a75bd 100644 --- a/sdk/log/provider.go +++ b/sdk/log/provider.go @@ -129,7 +129,7 @@ func (p *LoggerProvider) Logger(name string, opts ...log.LoggerOption) log.Logge return l } -// Shutdown flushes queued log records and shuts down the decorated expoter. +// Shutdown shuts down the provider and all processors. // // This method can be called concurrently. func (p *LoggerProvider) Shutdown(ctx context.Context) error { @@ -145,9 +145,9 @@ func (p *LoggerProvider) Shutdown(ctx context.Context) error { return err } -// ForceFlush flushes all exporters. +// ForceFlush flushes all processors. // -// This method can be called concurrently. +// This method can be called concurrently. func (p *LoggerProvider) ForceFlush(ctx context.Context) error { if p.stopped.Load() { return nil