Skip to content

Commit f3b2a31

Browse files
committed
add log
1 parent b0852c1 commit f3b2a31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/backends/otlp/backend.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ func (c *Backend) postMetrics(ctx context.Context, batch group) error {
352352
atomic.AddUint64(&c.seriesDropped, uint64(dropped))
353353
return err
354354
}
355+
} else {
356+
c.logger.WithError(err).WithFields(logrus.Fields{
357+
"endpoint": c.metricsEndpoint,
358+
}).Error("Issues trying to submit data")
355359
}
356360

357361
if retries >= c.maxRetries {

0 commit comments

Comments
 (0)