Skip to content

Commit baeb560

Browse files
authored
sdk/log: Fix doc for LoggerProvider.ForceFlush and LoggerProvider.Shutdown (#5259)
1 parent ae55e29 commit baeb560

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/log/provider.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (p *LoggerProvider) Logger(name string, opts ...log.LoggerOption) log.Logge
129129
return l
130130
}
131131

132-
// Shutdown flushes queued log records and shuts down the decorated expoter.
132+
// Shutdown shuts down the provider and all processors.
133133
//
134134
// This method can be called concurrently.
135135
func (p *LoggerProvider) Shutdown(ctx context.Context) error {
@@ -145,9 +145,9 @@ func (p *LoggerProvider) Shutdown(ctx context.Context) error {
145145
return err
146146
}
147147

148-
// ForceFlush flushes all exporters.
148+
// ForceFlush flushes all processors.
149149
//
150-
// This method can be called concurrently.
150+
// This method can be called concurrently.
151151
func (p *LoggerProvider) ForceFlush(ctx context.Context) error {
152152
if p.stopped.Load() {
153153
return nil

0 commit comments

Comments
 (0)