Skip to content

Commit

Permalink
fix: correct logger usage
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Oct 21, 2023
1 parent 0bbb6c8 commit 0184434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tracing/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func New(cfg Config, logger *zap.Logger) trace.Tracer { //nolint: ireturn
otlptracegrpc.WithEndpoint(cfg.Endpoint), otlptracegrpc.WithInsecure(),
)
if err != nil {
log.Fatalf("failed to initialize export pipeline for traces (otlp with grpc): %v", err)
logger.Fatal("failed to initialize export pipeline for traces (otlp with grpc)", zap.Error(err))
}

res, err := resource.Merge(
Expand Down

0 comments on commit 0184434

Please sign in to comment.