Is there a way for the info logs to be removed? CloudWatch is swamped due to the Lambda Layer Collector logs.
info Exporter is starting...
{
"kind": "exporter",
"data_type": "traces",
"name": "otlp"
}
.....
info Processor started.
{
"kind": "processor",
"name": "groupbytrace",
"pipeline": "traces"
}
.....
info shutting down the event manager
{
"kind": "processor",
"name": "groupbytrace",
"pipeline": "traces",
"pending-events": 0
}
This might help those who are trying to turn off the info logs.
nopCore := zap.WrapCore(func(zapcore.Core) zapcore.Core {
return zapcore.NewNopCore()
})
And add that to the CollectorSettings:
params := service.CollectorSettings{
BuildInfo: component.BuildInfo{
Command: "otelcol",
Description: "Lambda Collector",
Version: Version,
},
ConfigProvider: c.configProvider,
Factories: c.factories,
LoggingOptions: []zap.Option{nopCore},
}