Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: log swap failures to amplitude #6789

Merged
merged 1 commit into from
Jun 16, 2023
Merged

Conversation

just-toby
Copy link
Contributor

Description

logs swap failures to amplitude for trend tracking.

Linear ticket: https://linear.app/uniswap/issue/WEB-2307/log-swap-failures-to-amplitude

Screen capture

image

Test plan

Reproducing the error

  1. enabled debug mode locally and verified the tradeToConfirm is properly included in the

QA (ie manual testing)

  • manually verified the event logs at the appropriate time

@just-toby just-toby requested review from natew and vm June 16, 2023 17:45
@vercel
Copy link

vercel bot commented Jun 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
interface ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2023 5:46pm

@@ -441,6 +441,11 @@ export function Swap({
})
})
.catch((error) => {
if (!didUserReject(error)) {
sendAnalyticsEvent(SwapEventName.SWAP_ERROR, {
confirmedTrade: tradeToConfirm,
Copy link
Contributor

Choose a reason for hiding this comment

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

are you sure that sending a full object will be okay here? if yes then all good

Copy link
Contributor

Choose a reason for hiding this comment

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

there should be a way to test sending into the amplitude dev environment if you want to try that. i worry you won't be able to filter properly this way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cypress
Copy link

cypress bot commented Jun 16, 2023

1 flaky tests on run #12029 ↗︎

0 82 5 0 Flakiness 1

Details:

feat: log swap failures to amplitude
Project: Uniswap Interface Commit: 0ccb380801
Status: Passed Duration: 05:18 💡
Started: Jun 16, 2023 5:52 PM Ended: Jun 16, 2023 5:58 PM
Flakiness  cypress/e2e/permit2.test.ts • 1 flaky test • e2e

View Output Video

Test Artifacts
Permit2 > approval process (with intermediate screens) > swaps after completing full permit2 approval process Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Merging #6789 (0ccb380) into main (f3889e3) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Flag Coverage Δ
e2e-tests 62.27% <100.00%> (+0.05%) ⬆️
unit-tests 23.33% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@just-toby just-toby requested a review from vm June 16, 2023 18:03
@just-toby just-toby merged commit 6528fd1 into main Jun 16, 2023
@just-toby just-toby deleted the feat/log-swap-failures branch June 16, 2023 18:20
@MonkeyKing44 MonkeyKing44 mentioned this pull request Jan 5, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants