Skip to content

Commit

Permalink
Always log recorded metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
karlkfi committed Sep 11, 2023
1 parent 6e257ed commit 05e9f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/metrics/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

func record(ctx context.Context, ms ...stats.Measurement) {
stats.Record(ctx, ms...)
if klog.V(5).Enabled() {
if klog.V(0).Enabled() {
for _, m := range ms {
klog.Infof("Metric recorded: { \"Name\": %q, \"Value\": %#v, \"Tags\": %s }", m.Measure().Name(), m.Value(), tag.FromContext(ctx))
}
Expand Down

0 comments on commit 05e9f71

Please sign in to comment.