Skip to content

Commit

Permalink
Merge pull request #71 from gojek/bugfix/event_count_batch_drop_event
Browse files Browse the repository at this point in the history
Fix default event count sent as 1 for batch_dropped event
  • Loading branch information
rcrahul43 authored Jun 20, 2024
2 parents 75952bc + fe3cf08 commit 8d1292b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Tracker/Tracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public final class Tracker {

let healthEvent = Gojek_Clickstream_Internal_Health.with {
$0.eventName = event.eventName.rawValue
$0.numberOfEvents = 1 // Since instant events are fired one at a time
$0.numberOfEvents = event.eventCount == 0 ? 1 : Int64(event.eventCount) // Since instant events are fired one at a time
$0.healthMeta = metaData
$0.healthMeta.eventGuid = eventGuid
let currentTimestamp = Tracker.currentNTPTimestamp ?? Date()
Expand Down

0 comments on commit 8d1292b

Please sign in to comment.