-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
test: Test INP spans in E2E test #12636
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
Conversation
| }; | ||
|
|
||
| listener(Buffer.from(JSON.stringify(data)).toString('base64')); | ||
| try { |
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 also added this to clean up logs here a bit, replay events will always fail to parse because they are compressed and not JSON.
| }, | ||
| description: 'body > div#root > input#exception-button[type="button"]', | ||
| op: 'ui.interaction.click', | ||
| parent_span_id: expect.any(String), |
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.
shouldn't parent span be undefined for INP spans?
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 it? 😅 well today it is not! if there is an ongoing transaction, it will be a child of that. is that not correct? for me this seems like it makes sense, but 🤷 😅
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 was under the impression that INP spans were always root spans, but maybe I'm mistaken.
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.
cc @Lms24 when you're eventually back, you checked this out at the time. I'll merge this PR (as it shows the current behavior) but we can double check if this is fine.
While looking into #11646, I decided to add an E2E test for INP spans.