-
Notifications
You must be signed in to change notification settings - Fork 135
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
RUMM-1765 Do not start "ApplicationLaunch" view when app launches in background - part 2 #685
Changes from all commits
795e402
b1609bb
d3646f7
4c9338b
591708a
a92066e
44a15a8
9cc6cd4
64bcce5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,9 +171,14 @@ internal class RUMViewScope: RUMScope, RUMContextProvider { | |
} | ||
case let command as RUMAddUserActionCommand where isActiveView: | ||
if userActionScope == nil { | ||
addDiscreteUserAction(on: command) | ||
if command.actionType == .custom { | ||
// send it instantly without waiting for child events (e.g. resource associated to this action) | ||
sendDiscreteCustomUserAction(on: command) | ||
} else { | ||
addDiscreteUserAction(on: command) | ||
} | ||
} else if command.actionType == .custom { | ||
// still let it go, just instantly without any dependencies | ||
// still let it go, just instantly without waiting for child events (e.g. resource associated to this action) | ||
Comment on lines
173
to
+181
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. /nit this can be: if command.actionType == .custom {
// send it instantly without waiting for child events (e.g. resource associated to this action)
sendDiscreteCustomUserAction(on: command)
} else if userActionScope == nil {
addDiscreteUserAction(on: command)
} else {
reportActionDropped(type: command.actionType, name: command.name)
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed, it's simpler 👍. Applied in 99ffde2 to avoid rebasing. |
||
sendDiscreteCustomUserAction(on: command) | ||
Comment on lines
173
to
182
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While testing ALT feature, I found this bug in |
||
} else { | ||
reportActionDropped(type: command.actionType, name: command.name) | ||
|
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.
I think the name can be confused with application launch time. Can we rename it to something like
scopeStartTime
orsdkInitTime
?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.
Yes, makes sense - for that reason I called it
sdkInitTime
in upstream, but inRUMMonitor
this information was translated toapplicationStartTime
. What proposed could be simpler 👍 - applied in 99ffde2 to avoid rebasing.