Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 9a26142

Browse files
CoreyGriffinpeterdeme
authored andcommitted
[EEP-444] include error in failed metric send log (DataDog#118)
Co-authored-by: Corey Griffin <[email protected]>
1 parent 9d2335a commit 9a26142

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)