Skip to content

Commit

Permalink
Merge pull request #1639 from cuishuang/master
Browse files Browse the repository at this point in the history
fix: fix the argument of slog.Error
  • Loading branch information
tolgaOzen committed Sep 27, 2024
2 parents 9d95d27 + 13ce1dd commit de9b870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/telemetry/meter.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func NewCounter(meter omt.Meter, name, description string) omt.Int64Counter {
omt.WithDescription(description),
)
if err != nil {
slog.Error("failed to create counter: ", err)
slog.Error("failed to create counter", slog.String("error", err.Error()))
panic(err)
}

Expand All @@ -87,7 +87,7 @@ func NewHistogram(meter omt.Meter, name, unit, description string) omt.Int64Hist
omt.WithDescription(description),
)
if err != nil {
slog.Error("failed to create histogram: ", err)
slog.Error("failed to create histogram: ", slog.String("error", err.Error()))
panic(err)
}

Expand Down

0 comments on commit de9b870

Please sign in to comment.