Conversation
Builds ready [956a6df]
Page Load Metrics (402 ± 43 ms)
|
956a6df to
e1b0552
Compare
Builds ready [e1b0552]
Page Load Metrics (411 ± 54 ms)
|
rekmarks
left a comment
There was a problem hiding this comment.
I'm a big fan of this change!
My comments are mostly nits and questions, but there's on thing re: the metaMetricsSendCount that we need to address in this or (I think I'd prefer) a later PR.
app/scripts/lib/rpc-method-middleware/handlers/log-web3-usage.js
Outdated
Show resolved
Hide resolved
| // to be updated to work with the new tracking plan. I think we should use | ||
| // a config setting for this instead of trying to match the event name | ||
| const isSendFlow = Boolean(event.match(/^send|^confirm/u)) | ||
| if (isSendFlow && metaMetricsSendCount && !sendCountIsTrackable(metaMetricsSendCount + 1)) { |
There was a problem hiding this comment.
Looking at the ConfirmTransactionBase component, aren't we racing to increment the metaMetricsSendCount?
This may be a preexisting problem, but we should increment and update metaMetricsSendCount in a single place, ideally in some MetaMetrics handler function.
It's OK if we do that in a separate PR, but we should absolutely do it.
There was a problem hiding this comment.
I'll address this in a separate PR
Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
Builds ready [c04720e]
Page Load Metrics (484 ± 66 ms)
|
|
@rekmarks I addressed your feedback in the latest commit |
Builds ready [d1bbc20]
Page Load Metrics (390 ± 44 ms)
|
|
made those requested changes @rekmarks! thanks for the feedback. |
Builds ready [caa5ee0]
Page Load Metrics (407 ± 60 ms)
|
Builds ready [b47fbb3]
Page Load Metrics (445 ± 66 ms)
|
Builds ready [1fd82aa]
Page Load Metrics (404 ± 59 ms)
|
in #9509 a good step was made to move segment setup up from one of the controllers in the background process. This goes a step further by deduplicating a big chunk of setup between the frontend and background.
Bug fix, categories aren't attached correctly for background events
Improvements
rpcUrl, ifprovider.typeisrpc, or justprovider.typeotherwise.