Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
  • Loading branch information
codeboten committed Oct 3, 2024
1 parent b97dd34 commit 09a60e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/telemetry/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func newLogger(ctx context.Context, cfg LogsConfig, options []zap.Option) (*zap.
logger, err := zapCfg.Build(options...)

if len(cfg.Processors) > 0 {
logger = logger.WithOptions(zap.WrapCore(func(core zapcore.Core) zapcore.Core {
logger = logger.WithOptions(zap.WrapCore(func(_ zapcore.Core) zapcore.Core {
return otelzap.NewCore("go.opentelemetry.io/collector/service/telemetry", otelzap.WithLoggerProvider(sdk.LoggerProvider()))
}))
}
Expand Down

0 comments on commit 09a60e5

Please sign in to comment.