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(rum-core): enhance user transaction name obtaining #1390
Merged
Conversation
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
devcorpio
commented
Jul 10, 2023
devcorpio
commented
Jul 10, 2023
Signed-off-by: Adrien Mannocci <adrien.mannocci@elastic.co>
amannocci
reviewed
Jul 10, 2023
devcorpio
force-pushed
the
user-interaction-improvement
branch
from
July 11, 2023 11:00
933ffa6
to
6fc8f0c
Compare
devcorpio
commented
Jul 11, 2023
devcorpio
force-pushed
the
user-interaction-improvement
branch
from
July 11, 2023 16:53
d45cd7b
to
20127f2
Compare
vigneshshanmugam
approved these changes
Jul 11, 2023
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 🎉
devcorpio
force-pushed
the
user-interaction-improvement
branch
from
July 11, 2023 17:38
42c4c63
to
3b0dc7b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related to #1286
Summary
We have improved the user-interaction transaction name obtaining. From now on, if a user performs click on an element from a nested HTML structure like this:
The users will always get
Click - my transaction name
rather thanClick - span
orClick - svg
For more details see the issue
Important:
The agent will keep applying the older "algorithm" in browsers not supporting the closest method. E.g. IE11
In addition, this will work if the target is inside a button or link - the ones we define as interactive selectors. See the associated tests in case you need more context