Skip to content

Commit

Permalink
when report-client failed to serialize metrics, throwing errors rathe…
Browse files Browse the repository at this point in the history
…r than ignore
  • Loading branch information
chengjoey committed May 24, 2024
1 parent 8f6b0b3 commit c3a9aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/metrics/report/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (c *ReportClient) Send(in []*Metric) error {
}
requestBuffer, err := c.serialize(group)
if err != nil {
continue
return fmt.Errorf("failed to serialize metrics, name: %s, error: %v", group.Name, err)
}
for i := 0; i < c.CFG.ReportConfig.Collector.Retry; i++ {
if err = c.write(group.Name, requestBuffer); err == nil {
Expand Down

0 comments on commit c3a9aec

Please sign in to comment.