feat: BridgeStatusController track max polling reached and manually restarted polling events#7825
Merged
infiniteflower merged 5 commits intomainfrom Feb 5, 2026
Merged
Conversation
Track when polling has reached maximum attempts and stops, emitting the same properties as the Submitted event plus polling_attempts count.
…s event Track when polling is manually restarted via restartPollingForFailedAttempts, emitting the same properties as the Submitted event plus polling_attempts count.
…files Enable linting for @typescript-eslint/naming-convention in constants.ts and types.ts under bridge-controller metrics.
Combine MaxPollingReached and PollingManuallyRestarted events into a single PollingStatusUpdated event with a polling_status property to distinguish between the two cases.
ghgoodreau
approved these changes
Feb 5, 2026
micaelae
reviewed
Feb 5, 2026
micaelae
reviewed
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation
This PR tracks a new event
Unified SwapBridge Polling Status Updatedto better understand some possible discrepancies in the data. CurrentlySubmitted != Completed + Failed. In the screenshots,retry_attemptsis 1, since I artificially lowered it for testing.References
Related to https://consensyssoftware.atlassian.net/browse/SWAPS-3179
Checklist
Note
Medium Risk
Updates bridge status polling stop/restart paths to emit a new metrics event; mistakes could affect polling lifecycle behavior or analytics accuracy, but no security-sensitive logic is changed.
Overview
Adds a new Unified SwapBridge metrics event,
UnifiedSwapBridgeEventName.PollingStatusUpdated, with aPollingStatusenum (max_polling_reached,manually_restarted) and corresponding typed payload requirements.BridgeStatusControllernow emitsPollingStatusUpdatedwhen polling is stopped after hittingMAX_ATTEMPTS, and when polling is manually restarted viarestartPollingForFailedAttempts(including the retry attempt count). Changelogs and eslint suppression configuration are updated accordingly.Written by Cursor Bugbot for commit 71b8623. This will update automatically on new commits. Configure here.