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:
parent
ae55e29744
commit
baeb560673
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user