Skip to content

Fix minor issues with web3 metrics#9895

Merged
rekmarks merged 2 commits intodevelopfrom
web3-metrics-fixup
Nov 17, 2020
Merged

Fix minor issues with web3 metrics#9895
rekmarks merged 2 commits intodevelopfrom
web3-metrics-fixup

Conversation

@rekmarks
Copy link
Copy Markdown
Member

Fixes the following issues with the updated web3 metrics:

  • Catch promise rejections by ethereum.request in logging calls
  • Move top-level function logging setup inside shouldLogUsage if block

@rekmarks rekmarks requested a review from a team as a code owner November 17, 2020 16:35
@rekmarks rekmarks requested a review from Gudahtt November 17, 2020 16:35
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

Could you switch to using try ... catch instead? I'd rather we never use .catch and .then at all going forward, because it prevents async stack traces from working correctly.

@rekmarks rekmarks requested a review from Gudahtt November 17, 2020 17:08
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [b753e6b]
Page Load Metrics (357 ± 45 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint3010042147
domContentLoaded2546083559345
load2556103579345
domInteractive2536083559345

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@rekmarks rekmarks merged commit 2687163 into develop Nov 17, 2020
@rekmarks rekmarks deleted the web3-metrics-fixup branch November 17, 2020 19:08
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2020
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.

4 participants