Skip to content

Commit

Permalink
fix: batch router event delivery time (#2711)
Browse files Browse the repository at this point in the history
  • Loading branch information
BonapartePC authored Nov 17, 2022
1 parent 93a1ad1 commit 3782597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/batchrouter/batchrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ func (brt *HandleT) recordUploadStats(destination DestinationT, output StorageUp
eventDeliveryStat.Count(output.TotalEvents)

receivedTime, err := time.Parse(misc.RFC3339Milli, output.FirstEventAt)
if err != nil {
if err == nil {
eventDeliveryTimeStat := stats.Default.NewTaggedStat("event_delivery_time", stats.TimerType, map[string]string{
"module": "batch_router",
"destType": brt.destType,
Expand Down

0 comments on commit 3782597

Please sign in to comment.