feat: return actual host for known public domains in analytics cp-7.64.0#25385
feat: return actual host for known public domains in analytics cp-7.64.0#25385cryptodev-2s merged 7 commits intomainfrom
Conversation
|
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. |
1a3e690 to
c57a859
Compare
c57a859 to
053a3a6
Compare
053a3a6 to
94e1850
Compare
94e1850 to
31cac05
Compare
Previously, sanitizeRpcUrl returned 'custom' for all non-Infura/Quicknode endpoints. Now it returns the actual domain host for known public providers (Infura, Alchemy, etc.), improving analytics data quality.
31cac05 to
5009a46
Compare
This reverts commit 7003b9b.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The
These changes are focused on network-related analytics and validation, not core transaction or account flows. The changes are well-tested with comprehensive unit tests. SmokeNetworkAbstractions is the appropriate tag as it covers network management, network selection, and network-related UI components. Performance Test Selection: |
|



Description
Improves analytics data quality by returning the actual domain host for known public RPC providers instead of masking them as 'custom'.
isPublicRpcDomainhelper inrpc-domain-utils.tsthat checks if an RPC URL has a known public domainisPublicEndpointUrlby using the new helpersanitizeRpcUrlnow returns the actual host (e.g.,mainnet.infura.io,eth-mainnet.alchemyapi.ioor any RPC from chainid.network) for known public domains, improving the accuracy ofrpc_domainin analytics eventsChangelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/WPC-342
Manual testing steps
Screenshots/Recordings
N/A - Internal analytics improvement, no UI changes.
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes the logic that decides whether an RPC URL is safe to include in analytics, which could affect privacy/data reporting if domains are misclassified. Also adds a new async initialization step during
Enginestartup (non-blocking) that reports failures to Sentry.Overview
Improves RPC-domain analytics by recognizing known public RPC provider domains (e.g., Infura/Alchemy and domains learned from cached safe-chain RPC lists) as safe to report, so metrics can record the real host instead of lumping these under
custom.Adds
isPublicRpcDomaintorpc-domain-utilsand wires it intoisPublicEndpointUrlin network-controller utilities;Enginenow asynchronously preloads the provider-domain cache on startup and captures init errors via Sentry. Updates unit tests to cover invalid/localhost URLs and known public provider domains.Written by Cursor Bugbot for commit 7d9f601. This will update automatically on new commits. Configure here.