Skip to content

Commit c217e21

Browse files
committed
[EEP-444] include error in failed metric send log
1 parent bf8b37f commit c217e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/metrics/listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (l *Listener) AddDistributionMetric(metric string, value float64, timestamp
166166
if l.isAgentRunning {
167167
err := l.statsdClient.Distribution(metric, value, tags, 1)
168168
if err != nil {
169-
logger.Error(fmt.Errorf("could not send metric %s", metric))
169+
logger.Error(fmt.Errorf("could not send metric %s: %s", metric, err.Error()))
170170
}
171171
return
172172
}

0 commit comments

Comments
 (0)