-
Notifications
You must be signed in to change notification settings - Fork 134
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-1077 Prevent discarding RUM View events #415
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
513fa6f
RUMM-1077 Make the RUMViewEvent mapper return a non-nil RUMViewEvent …
92688d2
RUMM-1077 Make the RUMViewEvent mapper return a non-nil RUMViewEvent …
02e6903
Merge branch 'acgh/RUMM-1077-viewevent-data-scrubbing' of https://git…
a194ed8
RUMM-1077 Update api-surface files
3625a0c
RUMM-1077 Add reference to the UIKitRUMViewsPredicate API in doc
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
if i were a user, that could be a bit confusing to me
i have
ViewPredicate
where I can keep or drop views and then i also haveviewEventMapper
which intentionally prevents me from dropping them.i have a dilemma here:
ViewPredicate
here and how it's different thanviewMapper
, etc. this may be even more confusing in case the user never sawViewPredicate
API beforeViewPredicate
APIwhat do you think about that?
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.
Those are good points and that can look confusing.
My understanding is that the
ViewPredicate
gives an opportunity to drop views already, and downstream theRUMViewEventMapper
will be fed with events based on views that have been already filtered.Before that PR, we give the opportunity (again) to drop view related data at the
RUMViewEventMapper
, I think it can create a confusing pipeline (the other way around regarding your concerns).My point is that
ViewPredicate
let's the user code filter out views, there will be no events for already filtered out views andRUMViewEventMapper
will only receive events for views that have been chosen already.Does that make sense?
That being said, maybe it would help to mention the
UIKitRUMViewsPredicate
here for context.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'd vote for mentioning the
UIKitRUMViewsPredicate
in there.Using this scrubbing API to ignore particular
UIViewControllers
from being tracked is a misuse of the SDK APIs. It means the user doesn't understand the SDK auto instrumentation & scrubbing APIs well and we should guide him towards the success.That said, this change to "view events cannot be dropped" makes the contract between auto instrumentation & scrubbing APIs even more solid and puts the user on pathway to success.