feat: refactor processor singleton to multi singleton
All checks were successful
CI / test (push) Successful in 21s

This commit is contained in:
2025-05-05 19:04:09 +02:00
parent 4a8a5df6fd
commit 4d58aa9f8c
2 changed files with 18 additions and 18 deletions

View File

@@ -38,7 +38,7 @@ func createTracesProcessor(ctx context.Context, set processor.Settings, cfg comp
logger := set.Logger
tpCfg := cfg.(*Config)
traceProc := NewLogSamplerProcessorSingleton(logger, nextConsumer, nil, tpCfg)
traceProc := NewLogSamplerProcessorSingleton(set.ID, logger, nextConsumer, nil, tpCfg)
return traceProc, nil
}
@@ -47,7 +47,7 @@ func createLogsProcessor(ctx context.Context, set processor.Settings, cfg compon
logger := set.Logger
lpCfg := cfg.(*Config)
logProc := NewLogSamplerProcessorSingleton(logger, nil, nextConsumer, lpCfg)
logProc := NewLogSamplerProcessorSingleton(set.ID, logger, nil, nextConsumer, lpCfg)
return logProc, nil
}