Skip to content

Commit 835ee00

Browse files
committed
get messageId's of events.
1 parent 99fc727 commit 835ee00

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

e2ecli/Sources/e2ecli/main.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ func processConfigure(_ action: [String: Any]) {
101101
}
102102

103103
analytics = Analytics(configuration: config)
104+
105+
var messageIds = [String]()
106+
analytics?.add { event in
107+
if let eventMessageId = event?.messageId {
108+
messageIds.append(eventMessageId)
109+
}
110+
return event
111+
}
112+
104113
if waitUntilStarted {
105114
analytics?.waitUntilStarted()
106115
}

0 commit comments

Comments
 (0)