Skip to content

Commit

Permalink
chore: add source to event_delivery metric (#2642)
Browse files Browse the repository at this point in the history
  • Loading branch information
raman2805 authored and atzoum committed Nov 11, 2022
1 parent 129fb2e commit 7bba131
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions router/batchrouter/batchrouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,7 @@ func (brt *HandleT) recordUploadStats(destination DestinationT, output StorageUp
"destType": brt.destType,
"destination": destinationTag,
"workspaceId": destination.Source.WorkspaceID,
"source": destination.Source.ID,
})
eventDeliveryStat.Count(output.TotalEvents)

Expand Down
1 change: 1 addition & 0 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,7 @@ func (worker *workerT) sendEventDeliveryStat(destinationJobMetadata *types.JobMe
"destination": destinationTag,
"attempt_number": strconv.Itoa(status.AttemptNum),
"workspaceId": status.WorkspaceId,
"source": destinationJobMetadata.SourceID,
})
eventsDeliveredStat.Count(1)
if destinationJobMetadata.ReceivedAt != "" {
Expand Down

0 comments on commit 7bba131

Please sign in to comment.