Replies: 1 comment 4 replies
-
No suggestions yet, but two questions:
I'm curious about this part (and everything before it), it seems like this overlaps pretty heavily with web-vitals built-in
Does this double the transaction usage, since there's an INP for every page load, or are there thresholds that prevent INP from being reported in some cases? |
Beta Was this translation helpful? Give feedback.
-
I'm currently working on a proof of concept for collecting
INP
(Interaction to Next Paint) from the browser SDKs. I'd like to share with you all my current proposed solution for implementing this, but there are also some nuances with the implementation that I'd like to get some opinions on for how to deal with them.Current Proposal
An example of what one of these transactions with an interaction span looks like
interaction
span, it replaces the current stored transaction. This is becauseINP
is classified as the worst interaction on a specific page.Problems With This Approach
browserHistory.push
, the SDK currently creates a newnavigation
transaction. In this case, aninteraction
span will still be added to thenavigation
transaction, but since these transactions areIdleTransactions
, they will automatically be sent to Ingest after they finish.navigation
transaction is detected as the 'worst' transaction in a page, it will have to be sent again once the user navigates to a new page. This will result in this same transaction being sent twice, but the second time will haveINP
attached.Kapture.2023-04-05.at.14.24.00.mp4
Each of these tab clicks are classified as
navigation
transactionsProposed Solutions to the Above Problems
navigation
. The problem with this is that it may affect customer's queries and the way they use the UI in the Performance product, since the TPM of these transactions will change.Would love to hear if anyone has better ideas for solutions to the above problems. In the meantime I will continue to work on the PoC as described, but these problems will need to eventually be addressed!
Beta Was this translation helpful? Give feedback.
All reactions