Skip to content

Commit

Permalink
Comment WithProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared committed Mar 11, 2024
1 parent 5d300a2 commit 84a29d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/log/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ func WithResource(res *resource.Resource) LoggerProviderOption {
// By default, if this option is not used, the LoggerProvider will perform no
// operations; no data will be exported without a processor.
//
// Each WithProcessor creates a separate pipeline. Use custom decotarators
// for advanced scenarios such as enriching with attributes.
//
// Use NewBatchingProcessor to batch log records before they are exported.
// Use NewSimpleProcessor to synchronously export log records.
func WithProcessor(processor Processor) LoggerProviderOption {
Expand Down

0 comments on commit 84a29d0

Please sign in to comment.