From 824184ed520904d171ad1a48cd6fc10a0fbb9135 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Mon, 31 Oct 2022 15:24:01 -0230 Subject: [PATCH 1/3] Increase provider rate limited to 5 minutes (#16308) The metric event for provider methods has been increased from 1 minute to 5 minutes. This will reduce the event rate, ensuring a maximum of one event is tracked for each method call every five minutes. --- app/scripts/lib/createRPCMethodTrackingMiddleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/lib/createRPCMethodTrackingMiddleware.js b/app/scripts/lib/createRPCMethodTrackingMiddleware.js index 3362e29ad..8829bf5e2 100644 --- a/app/scripts/lib/createRPCMethodTrackingMiddleware.js +++ b/app/scripts/lib/createRPCMethodTrackingMiddleware.js @@ -104,7 +104,7 @@ const rateLimitTimeouts = {}; export default function createRPCMethodTrackingMiddleware({ trackEvent, getMetricsState, - rateLimitSeconds = 60, + rateLimitSeconds = 60 * 5, }) { return function rpcMethodTrackingMiddleware( /** @type {any} */ req, From c70ac4462b4e8aa21c527ded34ba2151821dc7c4 Mon Sep 17 00:00:00 2001 From: MetaMask Bot Date: Mon, 31 Oct 2022 17:59:00 +0000 Subject: [PATCH 2/3] Version v10.21.1 --- CHANGELOG.md | 7 ++++++- package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cfbbac3e..66700b9e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [10.21.1] +### Uncategorized +- Increase provider rate limited to 5 minutes ([#16308](https://github.com/MetaMask/metamask-extension/pull/16308)) + ## [10.21.0] ### Added - Add functionality for buying native currency and tokens on Optimism and Arbitrum, using Transak ([#16031](https://github.com/MetaMask/metamask-extension/pull/16031)) @@ -3249,7 +3253,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Uncategorized - Added the ability to restore accounts from seed words. -[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.21.0...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.21.1...HEAD +[10.21.1]: https://github.com/MetaMask/metamask-extension/compare/v10.21.0...v10.21.1 [10.21.0]: https://github.com/MetaMask/metamask-extension/compare/v10.20.0...v10.21.0 [10.20.0]: https://github.com/MetaMask/metamask-extension/compare/v10.19.0...v10.20.0 [10.19.0]: https://github.com/MetaMask/metamask-extension/compare/v10.18.4...v10.19.0 diff --git a/package.json b/package.json index ba1dd5f39..dcc6805e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-crx", - "version": "10.21.0", + "version": "10.21.1", "private": true, "repository": { "type": "git", From e3d5dc52d18afc6efa12183494065ac5273495d1 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Mon, 31 Oct 2022 15:34:08 -0230 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66700b9e4..035fa837e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [10.21.1] -### Uncategorized -- Increase provider rate limited to 5 minutes ([#16308](https://github.com/MetaMask/metamask-extension/pull/16308)) +### Changed +- Improve rate limiting for metric events ([#16308](https://github.com/MetaMask/metamask-extension/pull/16308)) ## [10.21.0] ### Added