Skip to content

Commit

Permalink
sdk/log: Fix doc for LoggerProvider.ForceFlush and LoggerProvider.Shu…
Browse files Browse the repository at this point in the history
…tdown (#5259)
  • Loading branch information
pellared committed Apr 23, 2024
1 parent ae55e29 commit baeb560
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/log/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit baeb560

Please sign in to comment.