Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
codeboten committed Sep 19, 2024
1 parent 8695a6d commit 44aa182
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()))
}))

Check warning on line 54 in service/telemetry/logger.go

View check run for this annotation

Codecov / codecov/patch

service/telemetry/logger.go#L52-L54

Added lines #L52 - L54 were not covered by tests
}
Expand Down

0 comments on commit 44aa182

Please sign in to comment.