Skip to content

Conversation

@VSaric
Copy link
Contributor

@VSaric VSaric commented Jul 29, 2022

Explanation

Based on this comment #15150 (comment), if there is a TRANSACTION_EVENTS.FINALIZED event for a dropped transaction, we should track a property transaction_replaced that can be one of cancel or retry or other.

We modified the _markNonceDuplicatesDropped function to, in addition to adding the replacedBy key, adding a replacedById key that records the internal metamask id of the tx that replaced it. Once we get the txMeta of the transaction that is replacing the dropped transaction, then we can determine cancel or retry or other using the type information on the transaction (if it doesn't match cancel or retry then it is other).

More Information

Screenshots/Screencaps

Before

After

Manual Testing Steps

@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@VSaric VSaric self-assigned this Jul 29, 2022
@metamaskbot
Copy link
Collaborator

Builds ready [03c5559]
Page Load Metrics (1809 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint90164123178
domContentLoaded16201973179910852
load16201973180910550
domInteractive16201973179910852

highlights:

storybook

@VSaric VSaric marked this pull request as ready for review July 29, 2022 11:36
@VSaric VSaric requested a review from a team as a code owner July 29, 2022 11:36
@VSaric VSaric dismissed a stale review via 1c9525d August 1, 2022 13:09
@VSaric VSaric force-pushed the add-data-about-dropped-transaction branch from 03c5559 to 1c9525d Compare August 1, 2022 13:09
@metamaskbot
Copy link
Collaborator

Builds ready [1c9525d]
Page Load Metrics (1731 ± 103 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint861848196379182
domContentLoaded146823631711225108
load155723631731214103
domInteractive146823631711225108

@metamaskbot
Copy link
Collaborator

Builds ready [6b873e7]
Page Load Metrics (2498 ± 135 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint942641385626300
domContentLoaded173227332481286137
load173228592498282135
domInteractive173227332481286137

@brad-decker brad-decker merged commit ce901f8 into develop Aug 2, 2022
@brad-decker brad-decker deleted the add-data-about-dropped-transaction branch August 2, 2022 15:53
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add data about dropped transaction in FINALIZED metrics event

5 participants