You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-07-01 00:24:59 +02:00
sdk/log: Fix doc for LoggerProvider.ForceFlush and LoggerProvider.Shutdown (#5259)
This commit is contained in:
@ -129,7 +129,7 @@ func (p *LoggerProvider) Logger(name string, opts ...log.LoggerOption) log.Logge
|
|||||||
return l
|
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.
|
// This method can be called concurrently.
|
||||||
func (p *LoggerProvider) Shutdown(ctx context.Context) error {
|
func (p *LoggerProvider) Shutdown(ctx context.Context) error {
|
||||||
@ -145,9 +145,9 @@ func (p *LoggerProvider) Shutdown(ctx context.Context) error {
|
|||||||
return err
|
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 {
|
func (p *LoggerProvider) ForceFlush(ctx context.Context) error {
|
||||||
if p.stopped.Load() {
|
if p.stopped.Load() {
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user