-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telemetry | Add additional properties to posthog UTD errors #7776
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 👍
@@ -103,6 +103,17 @@ class DecryptionFailureTracker: NSObject { | |||
failure.eventLocalAgeMillis = Int(exactly: eventRelativeAgeMillis) | |||
failure.trustOwnIdentityAtTimeOfFailure = isSessionVerified | |||
|
|||
let myDomain = userId.components(separatedBy: ":")[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably safer to do .last
here instead of [1]
. Who knows how it can all go wrong and crash.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #7776 +/- ##
===========================================
+ Coverage 12.25% 12.27% +0.01%
===========================================
Files 1651 1651
Lines 164133 164167 +34
Branches 67490 67499 +9
===========================================
+ Hits 20116 20148 +32
Misses 143346 143346
- Partials 671 673 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
Pull Request Checklist
Based on #7775
Last step of #7767
Add the new properties
isMatrixOrg
,isFederated
andwasVisibleToUser
.Note:
wasVisibleToUser
is always true for now, as the UTD are reported only from theEventFormatter
.Additional work is needed to report visible vs not visible. This would require to move down the
DecryptionFailureTracker
into the SDK