-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat(INJI-622): add telemetry event to track face model init fail/sucess #1101
Conversation
shared/commonprops/commonProps.ts
Outdated
sendErrorEvent( | ||
getErrorEventData( | ||
TelemetryConstants.FlowType.faceModelInit, | ||
TelemetryConstants.EndEventStatus.failure, |
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.
This should be an error Id coming from Telemetry constants
shared/commonprops/commonProps.ts
Outdated
sendErrorEvent( | ||
getErrorEventData( | ||
TelemetryConstants.FlowType.faceModelInit, | ||
TelemetryConstants.EndEventStatus.failure, |
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.
This should the landing screen's name instead of the status. If you want to pass the status send it in additional parameters
shared/commonprops/commonProps.ts
Outdated
@@ -21,11 +29,29 @@ export async function downloadModel() { | |||
var result = await init(resp + '/model.tflite', false); |
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.
This is inside a for loop which means we will be logging telemetry events multiple times for the same thing.
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.
We should log once after retries count is exhausted
…cess Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
9befabc
to
7b480ea
Compare
Signed-off-by: Harsh Vardhan <harsh59v@gmail.com>
7b480ea
to
254c5d8
Compare
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.
LGTM
@@ -16,6 +23,7 @@ export default async function getAllConfigurations( | |||
|
|||
export async function downloadModel() { | |||
try { | |||
console.log('restart Face model init'); |
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.
Why the log message is restart
?
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.
Should have been removed IMO.
Summary
(Q) What we know so far?
(A) The crash is possible on Android & iOS if the Face SDK is not initialized, there could be other reasons as well hence we are going to log an event in Telemetry and observe if a crash still exists.
(Q) Have we verified that the app crashes?
(A) Yes, I have disabled the download of face model and tried to do a Share with Selfie and a Online QR Login on Android & iOS and in both platforms the phones have crashed.
(Q) Could there be other reasons for the crash?
(A) Yes, I’ve observed one of the issue and tried to fix it and I’ll be adding telemetry events to see if the crash still happens when the face SDK model is initialized correctly.