1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-28 21:09:17 +02:00

sdk/log: Fix doc for LoggerProvider.ForceFlush and LoggerProvider.Shutdown (#5259)

This commit is contained in:
Robert Pająk 2024-04-23 20:19:05 +02:00 committed by GitHub
parent ae55e29744
commit baeb560673
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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