Skip to content

feat(telemetry): add last-activity signals to sampled state writes - #47455

Merged
gauthierpetetin merged 3 commits into
mainfrom
feat/telemetry-last-activity-state-writes
Nov 2, 2026
Merged

gauthierpetetin merged 3 commits into
mainfrom
feat/telemetry-last-activity-state-writes

Conversation

@gauthierpetetin

@gauthierpetetin gauthierpetetin commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Description

Implements Option C from ADR 0068 (state-write telemetry idle definition): attach an agnostic last-activity snapshot to each sampled split-state write so analysts can decide what context matters at query time.

Reason: State-write telemetry already records size, controllers, and related measurements. Option C adds a snapshot of what MetaMask did before the write happenned, without baking an arbitrary idle definition into the client.

Solution:

  • On each sampled write, capture LastActivity and report it on the Sentry state-write event:
    • ms_since_app_start
    • ms_since_last_write
    • ms_since_ui_open
    • ms_since_ui_closed
    • ms_since_window_event
    • last_service_worker_reload
    • service_worker_reload_count

Changelog

CHANGELOG entry: null

Related issues

Fixes:

Manual testing steps

  1. Reproduce manual testing steps detailed in this PR: feat(persistence): add sampled split-state write telemetry #46286
  2. Confirm ms_since_app_start, ms_since_last_write, ms_since_ui_open, ms_since_ui_closed, ms_since_window_event, last_service_worker_reload and service_worker_reload_count properties are now added to state.write metdata of State Persist traces in Sentry.
  3. To increment service_worker_reload_count property, visit chrome://serviceworker-internals/ , search MetaMask by its ID, and click on "Stop" to restart the service worker.
Screenshot 2026-10-28 at 17 45 57

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Made with Cursor


Note

Low Risk
Telemetry-only changes on the persist path with best-effort, fail-open handling; no user-facing behavior or vault logic changes.

Reviewed by Cursor Bugbot for commit 45963c1. Bugbot is set up for automated code reviews on this repo. Configure here.

Surface elapsed-time context on split-state persist events so Sentry can
correlate writes with app start, UI open/close, window focus, and SW reloads.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown
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.

@metamask-ci metamask-ci Bot added the team-extension-platform Extension Platform team label Oct 28, 2026
@gauthierpetetin gauthierpetetin self-assigned this Oct 28, 2026
@metamask-ci

metamask-ci Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor
Builds ready [5036243]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 3 warn · 🔴 3 fail)

Baseline (latest main): 171ed20 | Date: 7/28/2026 | Pipeline: 40718939915 | Baseline logs

Metricschrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 load_new_account(p95) [CI log]🔴 load_new_account(p95) [CI log]
onboardingImportWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]

Regressions (🔴 3 failures)

Interaction Benchmarks · Samples: 5 🔴 2
Benchmarkchrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 [CI log]
🔴 load_new_account
🔴 [CI log]
🔴 load_new_account
confirmTx
[Sentry log · main/release]
🟡 [CI log]🟢 [CI log]
bridgeUserActions
[Sentry log · main/release]
🟡 [CI log]🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ loadNewAccount/load_new_account: +419%
  • ↑ loadNewAccount/total: +419%
  • ↑ confirmTx/longTaskTotalDuration: +62%
  • ↑ confirmTx/longTaskMaxDuration: +92%
  • ↑ confirmTx/tbt: +99%
  • ↑ bridgeUserActions/bridge_load_page: +109%
  • ↑ bridgeUserActions/bridge_load_asset_picker: +42%
  • ↑ bridgeUserActions/longTaskCount: +67%
  • ↑ bridgeUserActions/longTaskTotalDuration: +191%
  • ↑ bridgeUserActions/longTaskMaxDuration: +78%
  • ↑ bridgeUserActions/tbt: +339%
  • ↑ bridgeUserActions/total: +14%
  • ↑ bridgeUserActions/inp: +31%
  • ↑ loadNewAccount/load_new_account: +419%
  • ↑ loadNewAccount/total: +419%
  • ↑ loadNewAccount/inp: +14%
  • ↓ loadNewAccount/fcp: -36%
  • ↑ loadNewAccount/lcp: +1309%
  • ↓ confirmTx/longTaskCount: -100%
  • ↓ confirmTx/longTaskTotalDuration: -100%
  • ↓ confirmTx/longTaskMaxDuration: -100%
  • ↓ confirmTx/tbt: -100%
  • ↓ confirmTx/inp: -24%
  • ↓ confirmTx/fcp: -31%
  • ↑ confirmTx/lcp: +1350%
  • ↑ bridgeUserActions/bridge_load_page: +382%
  • ↑ bridgeUserActions/bridge_load_asset_picker: +119%
  • ↑ bridgeUserActions/bridge_search_token: +20%
  • ↓ bridgeUserActions/longTaskCount: -100%
  • ↓ bridgeUserActions/longTaskTotalDuration: -100%
  • ↓ bridgeUserActions/longTaskMaxDuration: -100%
  • ↓ bridgeUserActions/tbt: -100%
  • ↑ bridgeUserActions/total: +59%
  • ↑ bridgeUserActions/inp: +54%
  • ↓ bridgeUserActions/fcp: -34%
  • ↑ bridgeUserActions/lcp: +1274%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 loadNewAccount/FCP: p75 1.8s
  • 🟡 confirmTx/FCP: p75 1.8s
  • 🟡 bridgeUserActions/FCP: p75 1.9s
Startup Benchmarks · Samples: 100
Benchmarkchrome-webpackfirefox-webpack
startupStandardHome
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ startupStandardHome/uiStartup: +15%
  • ↑ startupStandardHome/load: +12%
  • ↑ startupStandardHome/domContentLoaded: +12%
  • ↑ startupStandardHome/domInteractive: +29%
  • ↓ startupStandardHome/firstReactRender: -98%
  • ↓ startupStandardHome/initialActions: -33%
  • ↑ startupStandardHome/loadScripts: +11%
  • ↑ startupStandardHome/setupStore: +233%
  • ↑ startupStandardHome/longTaskMaxDuration: +10%
  • ↑ startupStandardHome/tbt: +15%
  • ↑ startupStandardHome/fcp: +11%
  • ↓ startupStandardHome/domInteractive: -41%
  • ↓ startupStandardHome/firstReactRender: -98%
  • ↓ startupStandardHome/initialActions: -50%
  • ↑ startupStandardHome/setupStore: +131%
  • ↓ startupStandardHome/fcp: -37%
User Journey Benchmarks · Samples: 5 · mock API 🔴 1
Benchmarkchrome-webpackfirefox-webpack
onboardingImportWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]
🔴 total
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]
🟡 total

📈 Results compared to the previous 5 runs on main

  • ↑ onboardingImportWallet/srpButtonToSrpForm: +63%
  • ↑ onboardingImportWallet/confirmSrpToPwForm: +48%
  • ↑ onboardingImportWallet/pwFormToMetricsScreen: +46%
  • ↑ onboardingImportWallet/metricsToWalletReadyScreen: +35%
  • ↓ onboardingImportWallet/doneButtonToHomeScreen: -94%
  • ↓ onboardingImportWallet/openAccountMenuToAccountListLoaded: -75%
  • ↓ onboardingImportWallet/longTaskCount: -100%
  • ↓ onboardingImportWallet/longTaskTotalDuration: -100%
  • ↓ onboardingImportWallet/longTaskMaxDuration: -100%
  • ↓ onboardingImportWallet/tbt: -100%
  • ↓ onboardingImportWallet/total: -89%
  • ↓ onboardingNewWallet/doneButtonToAssetList: -82%
  • ↓ onboardingNewWallet/longTaskCount: -100%
  • ↓ onboardingNewWallet/longTaskTotalDuration: -100%
  • ↓ onboardingNewWallet/longTaskMaxDuration: -100%
  • ↓ onboardingNewWallet/tbt: -100%
  • ↓ onboardingNewWallet/total: -79%
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-webpack
dappPageLoad
[Sentry log · main/release]
🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↓ dappPageLoad/pageLoadTime: -57%
  • ↓ dappPageLoad/firstPaint: -32%
  • ↓ dappPageLoad/firstContentfulPaint: -32%
Bundle Size Diffs [🚨 Warning! Bundle size has increased!]
Status Bundle Total Diff Change
🚨 background 15.41 MiB +3.12 KiB +0.02%
🚨 ui 19.26 MiB +2.68 KiB +0.01%
✅ common 0 Bytes 0 Bytes 0.00%
✅ other 4.44 MiB +12 Bytes 0.00%
✅ content scripts 3.23 MiB +24 Bytes 0.00%
🚨 unzipped 79.76 MiB +5.84 KiB +0.01%
🚨 zip 24.04 MiB +1.55 KiB +0.01%

Omit UI open/close and SW-reload elapsed fields when inactive, and avoid
spreading unknown[] into jest mocks so TypeScript lint passes.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Session-read failures can cause persisted activity history to be overwritten, and sampled-write timing incorrectly includes telemetry latency rather than measuring intervals between successful storage writes.

2 open issues
What changed in this PR

Adds last-activity snapshots to sampled split-state write telemetry, extending existing persistence measurements so analysts can assess activity context without a client-defined idle threshold.

Changes:

  • Tracks write, UI, window-focus, and service-worker activity, with session persistence on Manifest V3.
  • Attaches elapsed-time signals and reload counts to Sentry state-write spans.
  • Adds tests for activity tracking, session restoration, persistence integration, and reporting.
File Description
shared/​lib/​telemetry/​state-write-reporter.ts Maps last-activity signals to Sentry attributes.
shared/​lib/​telemetry/​state-write-reporter.test.ts Tests signal reporting and omission of unset values.
shared/​lib/​telemetry/​last-activity.ts Adds activity tracking and session restoration.
shared/​lib/​telemetry/​last-activity.test.ts Tests elapsed times, reloads, and context isolation.
shared/​lib/​stores/​persistence-manager.ts Captures activity snapshots and records successful writes.
shared/​lib/​stores/​persistence-manager.test.ts Tests snapshot integration and write-recording order.
app/​scripts/​lib/​setup-initial-state-hooks.test.ts Updates the write-event fixture with last activity.
app/​scripts/​background.ts Records UI connections, final UI closures, and window-focus events.

Review effort: Balanced

Comment thread shared/lib/telemetry/last-activity.ts Resolved
@metamask-ci

metamask-ci Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor
Builds ready [4971c90]
⚡ Performance Benchmarks (Total: 🟢 9 pass · 🟡 1 warn · 🔴 3 fail)

Baseline (latest main): 171ed20 | Date: 7/28/2026 | Pipeline: 40727575649 | Baseline logs

Metricschrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 load_new_account(p95) [CI log]🔴 load_new_account(p95) [CI log]
onboardingImportWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]

Regressions (🔴 3 failures)

Interaction Benchmarks · Samples: 5 🔴 2
Benchmarkchrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 [CI log]
🔴 load_new_account
🔴 [CI log]
🔴 load_new_account
confirmTx
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
bridgeUserActions
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ loadNewAccount/load_new_account: +415%
  • ↑ loadNewAccount/total: +415%
  • ↓ loadNewAccount/inp: -17%
  • ↓ loadNewAccount/fcp: -11%
  • ↑ confirmTx/longTaskTotalDuration: +29%
  • ↑ confirmTx/longTaskMaxDuration: +50%
  • ↑ confirmTx/tbt: +51%
  • ↓ confirmTx/inp: -24%
  • ↑ bridgeUserActions/bridge_load_page: +114%
  • ↑ bridgeUserActions/bridge_load_asset_picker: +80%
  • ↑ bridgeUserActions/longTaskCount: +67%
  • ↑ bridgeUserActions/longTaskTotalDuration: +59%
  • ↑ bridgeUserActions/longTaskMaxDuration: +24%
  • ↑ bridgeUserActions/tbt: +48%
  • ↓ bridgeUserActions/fcp: -15%
  • ↑ loadNewAccount/load_new_account: +417%
  • ↑ loadNewAccount/total: +417%
  • ↓ loadNewAccount/inp: -47%
  • ↑ loadNewAccount/lcp: +975%
  • ↓ confirmTx/longTaskCount: -100%
  • ↓ confirmTx/longTaskTotalDuration: -100%
  • ↓ confirmTx/longTaskMaxDuration: -100%
  • ↓ confirmTx/tbt: -100%
  • ↓ confirmTx/inp: -39%
  • ↓ confirmTx/fcp: -61%
  • ↑ confirmTx/lcp: +1155%
  • ↑ bridgeUserActions/bridge_load_page: +168%
  • ↑ bridgeUserActions/bridge_load_asset_picker: +68%
  • ↓ bridgeUserActions/longTaskCount: -100%
  • ↓ bridgeUserActions/longTaskTotalDuration: -100%
  • ↓ bridgeUserActions/longTaskMaxDuration: -100%
  • ↓ bridgeUserActions/tbt: -100%
  • ↑ bridgeUserActions/total: +28%
  • ↑ bridgeUserActions/inp: +38%
  • ↓ bridgeUserActions/fcp: -58%
  • ↑ bridgeUserActions/lcp: +1015%
Startup Benchmarks · Samples: 100
Benchmarkchrome-webpackfirefox-webpack
startupStandardHome
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↓ startupStandardHome/uiStartup: -23%
  • ↓ startupStandardHome/load: -25%
  • ↓ startupStandardHome/domContentLoaded: -26%
  • ↓ startupStandardHome/domInteractive: -16%
  • ↓ startupStandardHome/firstPaint: -12%
  • ↓ startupStandardHome/backgroundConnect: -30%
  • ↓ startupStandardHome/firstReactRender: -99%
  • ↓ startupStandardHome/initialActions: -33%
  • ↓ startupStandardHome/loadScripts: -27%
  • ↑ startupStandardHome/setupStore: +74%
  • ↓ startupStandardHome/longTaskCount: -33%
  • ↓ startupStandardHome/longTaskTotalDuration: -32%
  • ↓ startupStandardHome/longTaskMaxDuration: -30%
  • ↓ startupStandardHome/tbt: -33%
  • ↓ startupStandardHome/inp: -18%
  • ↓ startupStandardHome/fcp: -26%
  • ↓ startupStandardHome/lcp: -11%
  • ↓ startupStandardHome/domInteractive: -37%
  • ↓ startupStandardHome/firstReactRender: -98%
  • ↓ startupStandardHome/initialActions: -50%
  • ↑ startupStandardHome/setupStore: +137%
  • ↓ startupStandardHome/fcp: -32%
User Journey Benchmarks · Samples: 5 · mock API 🔴 1
Benchmarkchrome-webpackfirefox-webpack
onboardingImportWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]
🔴 total
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]
🟡 total

📈 Results compared to the previous 5 runs on main

  • ↑ onboardingImportWallet/srpButtonToSrpForm: +44%
  • ↑ onboardingImportWallet/confirmSrpToPwForm: +37%
  • ↑ onboardingImportWallet/pwFormToMetricsScreen: +31%
  • ↑ onboardingImportWallet/metricsToWalletReadyScreen: +32%
  • ↓ onboardingImportWallet/doneButtonToHomeScreen: -94%
  • ↓ onboardingImportWallet/openAccountMenuToAccountListLoaded: -75%
  • ↓ onboardingImportWallet/longTaskCount: -86%
  • ↓ onboardingImportWallet/longTaskTotalDuration: -100%
  • ↓ onboardingImportWallet/longTaskMaxDuration: -100%
  • ↓ onboardingImportWallet/tbt: -100%
  • ↓ onboardingImportWallet/total: -88%
  • ↑ onboardingNewWallet/srpButtonToPwForm: +44%
  • ↑ onboardingNewWallet/createPwToRecoveryScreen: +19%
  • ↑ onboardingNewWallet/skipBackupToMetricsScreen: +16%
  • ↑ onboardingNewWallet/agreeButtonToOnboardingSuccess: +26%
  • ↓ onboardingNewWallet/doneButtonToAssetList: -78%
  • ↓ onboardingNewWallet/longTaskCount: -69%
  • ↓ onboardingNewWallet/longTaskTotalDuration: -78%
  • ↓ onboardingNewWallet/longTaskMaxDuration: -49%
  • ↓ onboardingNewWallet/tbt: -99%
  • ↓ onboardingNewWallet/total: -75%
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-webpack
dappPageLoad
[Sentry log · main/release]
🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↓ dappPageLoad/pageLoadTime: -57%
  • ↓ dappPageLoad/firstPaint: -46%
  • ↓ dappPageLoad/firstContentfulPaint: -46%
Bundle Size Diffs [🚨 Warning! Bundle size has increased!]
Status Bundle Total Diff Change
🚨 background 15.41 MiB +3.23 KiB +0.02%
🚨 ui 19.26 MiB +3.01 KiB +0.02%
✅ common 0 Bytes 0 Bytes 0.00%
✅ other 4.44 MiB +12 Bytes 0.00%
✅ content scripts 3.23 MiB +553 Bytes +0.02%
🚨 unzipped 79.76 MiB +6.8 KiB +0.01%
🚨 zip 24.04 MiB +2.01 KiB +0.01%

Keep session writes disabled when storage.session.get throws so later
record* calls cannot overwrite an existing lastActivity record.

Co-authored-by: Cursor <cursoragent@cursor.com>
@metamask-ci

metamask-ci Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor
Builds ready [45963c1]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 3 warn · 🔴 3 fail)

Baseline (latest main): 171ed20 | Date: 7/28/2026 | Pipeline: 40732365232 | Baseline logs

Metricschrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 load_new_account(p95) [CI log]🔴 load_new_account(p95) [CI log]
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]

Regressions (🔴 3 failures)

Interaction Benchmarks · Samples: 5 🔴 2
Benchmarkchrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🔴 [CI log]
🔴 load_new_account
🔴 [CI log]
🔴 load_new_account
confirmTx
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
bridgeUserActions
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↑ loadNewAccount/load_new_account: +412%
  • ↑ loadNewAccount/total: +412%
  • ↓ loadNewAccount/inp: -32%
  • ↓ loadNewAccount/fcp: -29%
  • ↓ loadNewAccount/lcp: -25%
  • ↑ confirmTx/longTaskMaxDuration: +24%
  • ↓ confirmTx/inp: -32%
  • ↓ confirmTx/fcp: -30%
  • ↓ confirmTx/lcp: -20%
  • ↑ bridgeUserActions/longTaskCount: +11%
  • ↓ bridgeUserActions/longTaskTotalDuration: -15%
  • ↓ bridgeUserActions/longTaskMaxDuration: -30%
  • ↓ bridgeUserActions/tbt: -66%
  • ↓ bridgeUserActions/total: -11%
  • ↓ bridgeUserActions/fcp: -30%
  • ↓ bridgeUserActions/lcp: -21%
  • ↑ loadNewAccount/load_new_account: +419%
  • ↑ loadNewAccount/total: +419%
  • ↓ loadNewAccount/inp: -24%
  • ↓ loadNewAccount/fcp: -50%
  • ↑ loadNewAccount/lcp: +1156%
  • ↓ confirmTx/longTaskCount: -100%
  • ↓ confirmTx/longTaskTotalDuration: -100%
  • ↓ confirmTx/longTaskMaxDuration: -100%
  • ↓ confirmTx/tbt: -100%
  • ↓ confirmTx/inp: -39%
  • ↓ confirmTx/fcp: -65%
  • ↑ confirmTx/lcp: +1044%
  • ↑ bridgeUserActions/bridge_load_page: +187%
  • ↑ bridgeUserActions/bridge_load_asset_picker: +104%
  • ↓ bridgeUserActions/longTaskCount: -100%
  • ↓ bridgeUserActions/longTaskTotalDuration: -100%
  • ↓ bridgeUserActions/longTaskMaxDuration: -100%
  • ↓ bridgeUserActions/tbt: -100%
  • ↑ bridgeUserActions/total: +19%
  • ↑ bridgeUserActions/inp: +131%
  • ↓ bridgeUserActions/fcp: -54%
  • ↑ bridgeUserActions/lcp: +986%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 bridgeUserActions/INP: p75 240ms
Startup Benchmarks · Samples: 100
Benchmarkchrome-webpackfirefox-webpack
startupStandardHome
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]
🟡 loadScripts

📈 Results compared to the previous 5 runs on main

  • ↓ startupStandardHome/firstReactRender: -99%
  • ↓ startupStandardHome/initialActions: -33%
  • ↑ startupStandardHome/setupStore: +173%
  • ↓ startupStandardHome/longTaskCount: -33%
  • ↓ startupStandardHome/domInteractive: -26%
  • ↑ startupStandardHome/backgroundConnect: +12%
  • ↓ startupStandardHome/firstReactRender: -98%
  • ↓ startupStandardHome/initialActions: -50%
  • ↑ startupStandardHome/setupStore: +153%
  • ↓ startupStandardHome/fcp: -22%
User Journey Benchmarks · Samples: 5 · mock API 🔴 1
Benchmarkchrome-webpackfirefox-webpack
onboardingImportWallet
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]
🟡 total
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]
🔴 total

📈 Results compared to the previous 5 runs on main

  • ↑ onboardingImportWallet/srpButtonToSrpForm: +53%
  • ↑ onboardingImportWallet/confirmSrpToPwForm: +44%
  • ↑ onboardingImportWallet/pwFormToMetricsScreen: +88%
  • ↑ onboardingImportWallet/metricsToWalletReadyScreen: +46%
  • ↓ onboardingImportWallet/doneButtonToHomeScreen: -94%
  • ↓ onboardingImportWallet/openAccountMenuToAccountListLoaded: -75%
  • ↓ onboardingImportWallet/longTaskCount: -100%
  • ↓ onboardingImportWallet/longTaskTotalDuration: -100%
  • ↓ onboardingImportWallet/longTaskMaxDuration: -100%
  • ↓ onboardingImportWallet/tbt: -100%
  • ↓ onboardingImportWallet/total: -88%
  • ↑ onboardingNewWallet/srpButtonToPwForm: +47%
  • ↑ onboardingNewWallet/createPwToRecoveryScreen: +42%
  • ↑ onboardingNewWallet/skipBackupToMetricsScreen: +21%
  • ↑ onboardingNewWallet/agreeButtonToOnboardingSuccess: +34%
  • ↓ onboardingNewWallet/doneButtonToAssetList: -75%
  • ↓ onboardingNewWallet/longTaskCount: -38%
  • ↓ onboardingNewWallet/longTaskTotalDuration: -71%
  • ↓ onboardingNewWallet/longTaskMaxDuration: -44%
  • ↓ onboardingNewWallet/tbt: -88%
  • ↓ onboardingNewWallet/total: -71%
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-webpack
dappPageLoad
[Sentry log · main/release]
🟢 [CI log]

📈 Results compared to the previous 5 runs on main

  • ↓ dappPageLoad/pageLoadTime: -70%
  • ↓ dappPageLoad/domContentLoaded: -31%
  • ↓ dappPageLoad/firstPaint: -50%
  • ↓ dappPageLoad/firstContentfulPaint: -50%
Bundle Size Diffs [🚨 Warning! Bundle size has increased!]
Status Bundle Total Diff Change
🚨 background 15.41 MiB +3.23 KiB +0.02%
🚨 ui 19.26 MiB +3.01 KiB +0.02%
✅ common 0 Bytes 0 Bytes 0.00%
✅ other 4.44 MiB +12 Bytes 0.00%
✅ content scripts 3.23 MiB +553 Bytes +0.02%
🚨 unzipped 79.76 MiB +6.79 KiB +0.01%
🚨 zip 24.04 MiB +2.01 KiB +0.01%

@sonarqubecloud

Copy link
Copy Markdown

@gauthierpetetin
gauthierpetetin added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 7acfaa3 Nov 2, 2026
158 of 159 checks passed
@gauthierpetetin
gauthierpetetin deleted the feat/telemetry-last-activity-state-writes branch November 2, 2026 21:27
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 2026
@metamaskbot metamaskbot added the release-13.57.0 Issue or pull request that will be included in release 13.57.0 label Nov 9, 2026
@gauthierpetetin

Copy link
Copy Markdown
Contributor Author

No release label on PR. Adding release label release-13.57.0 on PR, as PR was added to branch 13.57.0 when release was cut.

This branch was successfully deployed

1 active and 1 inactive deployments
pr-comment — 45963c19 Deployed Oct 28, 2026 by gauthierpetetin via Publish prerelease / Publish prerelease #171679
segment-schema — 45963c19 Deployed Oct 28, 2026 by gauthierpetetin via propose #1303
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.57.0 Issue or pull request that will be included in release 13.57.0 size-XL team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants