Add client session id

This commit is contained in:
Brahim Hadriche committed 2025-10-04 11:47:18 -04:00
1 parent 8eb300a1a0
commit b9d9b8f8ca
2 files changed
+8 -10

No files matched your search

+1 -10
View File
@@ -21,7 +21,7 @@ namespace Sentry
payload += `{"type":"event"}` + `\n`
if StringUtils.IsNullOrEmpty(event.event_id)
event.event_id = GenerateEventId()
event.event_id = m.deviceInfo.GetRandomUUID().Replace("-", "")
end if
if StringUtils.IsNullOrEmpty(event.timestamp)
@@ -116,15 +116,6 @@ namespace Sentry
return 0
end function
function GenerateEventId() as string
hexChars = "0123456789abcdef"
eventId = ""
for i = 0 to 31
eventId = eventId + hexChars.Mid(rnd(16) - 1, 1)
end for
return eventId
end function
function GetFingerprint(message as dynamic) as dynamic
if StringUtils.IsNullOrEmpty(message)
return invalid