From 84a29d078a90d59c8ea2ca72bbbb136f9dec694f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Mon, 11 Mar 2024 10:23:28 +0100 Subject: [PATCH] Comment WithProcessor --- sdk/log/provider.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/log/provider.go b/sdk/log/provider.go index eb974fdf2ee..97b70a5b121 100644 --- a/sdk/log/provider.go +++ b/sdk/log/provider.go @@ -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 {