Skip to content
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

Remove experimental feature for ui clicks, which may be overwriting navigation transactions #400

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

cstavitsky
Copy link
Contributor

@cstavitsky cstavitsky commented Feb 13, 2024

Description

experimental feature ui.click transactions may be overwriting navigation transactions in the demo.

Abhi:

perhaps theres a race condition here. Considering ui interactions are experimental and not actively supported, should we turn this off for the demo?

Slack discussion for context

Will C (Wed Jan 24 2024)
Can anyone fill me on on what the ui.action.click for /products is about?
or link me to a PullRequest?
I opened it, it appears like a pageload txn, it has spans you’d find in a pageload
image (73)

22 replies
Will C

The TPM indicates it’s probably being done via TDA, is that the case?
Not asking for either of the /products /products to be removed.
Just looking to be aware of any potential differences or plans regarding demo’s or the architecture of our app.

Kosty M
weird

Chris S
Probably this? getsentry/sentry-javascript#5750
Edit: nvm, looks like it is still open: getsentry/sentry-javascript#6941 (edited)
🥔
1

Kosty M
interesting how navigation is still there but is a tiny fraction by TPM/#of users
and it’s not coming from an old SDK: https://demo.sentry.io/discover/homepage/?display=default&field=sdk.version&field=tr[…]n%3A%2Fproducts&sort=-sdk.version&statsPeriod=24h&topEvents=5

Chris S
If we don’t care to find out why right now: #383

Chris S
Could also scope the filter just to /products ui.action.clicks

Kosty M
It seems like ui.action.click is supposed to replace navigation . We should probably check with Abhi why navigation are still trickling in occasionally… or am I missing something?

Chris S
Ah. My bad, did not digest what you were saying
👍
We should probably check with Abhi why navigation are still trickling in occasionally…
agree
👍

Chris S
Did anyone hear anything about navigation going away?

Chris S
Still getting a lot of navigation tx in sentry.sentry.io from a higher sdk ver
https://sentry.sentry.io/discover/homepage/?field=sdk.version&field=transaction.op&fi[…]vigation&sort=-sdk.version&statsPeriod=14d&yAxis=count%28%29

Chris S
@abhi
we wanted to ask your opinion about something (not urgent).
Summarizing the discussion above:
We used to have a high volume of navigation transactions in our demo. We now see a high volume of ui.action.click and a small handful of navigation transactions.
This has been happening for >90 days so hard to tell what might have introduced it.
Any idea why this would have happened? Did ui.action.click replace navigation transactions at some point not that long ago?
We saw these GH discussions (1, 2) you were involved in, but seems like (a) this may not be implemented yet, and (b) it’s opt-in. So this seems unlikely to me?

Abhijeet P
ui.action.click is enabled by adding the experiment

empower/react/src/index.js

Lines 106 to 107 in d509baf

// This enables tracing on user interactions like clicks
enableInteractions: true,

:thank_you:
1

🥔
1

Abhijeet P
but it shouldn’t replace anything, we didn’t make any changes on the SDK side toward this

Kosty M
🤔
I don’t get it… It looks like the overwhelming majority of what used to be op:navigation txns are now op:ui.action.click which seems to be the definition of replacing

Abhijeet P
we have logic builtin to prevent interactions from overwriting navigations https://github.com/getsentry/sentry-javascript/blob/52495c00ba700dd1df58025ef49195048279b692/packages/tracing-internal/src/browser/browsertracing.ts#L422-L425

Abhijeet P
Also I see a lot of this is on 7.77.0 - can we try bumping the SDK to 7.94.1?
:baymax-yes:
1

Kosty M
also I wonder if those are history i.e. clicking
⬅️
in the browser
see how not a single one is from TDA: https://demo.sentry.io/discover/homepage/?display=default&field=sdk.version&field=tr[…]%3Anavigation&sort=transaction.op&statsPeriod=14d&topEvents=5

Abhijeet P
also I wonder if those are history i.e. clicking
⬅️
in the browser
does the automation trigger the a button click instead of history navigate?

Kosty M
I believe so. New selenium session load the page (pageload) then clicking

Abhijeet P
so that should trigger navigate first, but perhaps theres a race condition here. Considering ui interactions are experimental and not actively supported, should we turn this off for the demo?

👍
1

Copy link
Collaborator

@realkosty realkosty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Chris!

@cstavitsky cstavitsky merged commit 75dc7ff into master Feb 13, 2024
7 checks passed
@cstavitsky cstavitsky deleted the disable_user_interactions_experimental_feature branch February 13, 2024 21:11
@cstavitsky
Copy link
Contributor Author

cstavitsky commented Mar 4, 2024

After merging, this appears to be unrelated to the original problem. The lack of many navigation transactions for /products is due to the way TDA tests are written, to my understanding. The tests start on the /products page but never navigate to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants