balancer / frontend-v3

Official UI application for the Balancer protocol.
https://balancer.fi
MIT License
7 stars 11 forks source link

feat: add tenderly urls to sentry metadata #1085

Closed agualis closed 5 days ago

agualis commented 6 days ago

Adds tenderly simulation urls to sentry metadata for the main flows: add, remove and swap (for both simulation and execution errors).

How to test? (Swap example)

Comment this line to avoid form input validation: https://github.com/balancer/frontend-v3/blob/feat/sentryTenderlyUrl/lib/modules/swap/SwapProvider.tsx#L535

Swap with token amount in greater than the wallet balance:

balanceForcedSwapError

Open the modal and the simulation should fail:

balanceForcedSwapError2

You will see a "Sentry capturing query error:" in the console:

console

It should contain a valid tenderly url in meta.context.extra.tenderlyUrl.

If sentry capturing was enabled (disabled by default in dev) you would see an issue like this one:
https://balancer-labs.sentry.io/issues/5837469276

Then you can open the tenderly url and simulate from the sentry issue 🎈

vercel[bot] commented 6 days ago

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

Name Status Preview Comments Updated (UTC)
frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 11:04am
test-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 11:04am