This repository was archived by the owner on Apr 28, 2022. It is now read-only.
Demote Paraswap Errors to warn! + success/failure metrics#1248
Merged
Demote Paraswap Errors to warn! + success/failure metrics#1248
Conversation
nlordell
reviewed
Oct 13, 2021
nlordell
reviewed
Oct 13, 2021
nlordell
reviewed
Oct 13, 2021
nlordell
reviewed
Oct 13, 2021
nlordell
reviewed
Oct 13, 2021
Contributor
nlordell
left a comment
There was a problem hiding this comment.
Not a fan of passing metrics with the Solver::solve method, I would instead recommend passing the metrics in when constructing the solvers.
Contributor
Please do. You can run the solver and connect to |
Contributor
|
I believe this PR closes #1015 |
Codecov Report
@@ Coverage Diff @@
## main #1248 +/- ##
==========================================
- Coverage 67.43% 67.42% -0.02%
==========================================
Files 135 135
Lines 28344 28372 +28
==========================================
+ Hits 19113 19129 +16
- Misses 9231 9243 +12 |
nlordell
approved these changes
Oct 14, 2021
Contributor
nlordell
left a comment
There was a problem hiding this comment.
Looks good to me! Thanks for fixing this 😄.
As a follow up task, could you add panels in our Grafana dashboard for this as well?
Contributor
Author
Yes absolutely, although I am still trying to figure out how. |
vkgnosis
approved these changes
Oct 14, 2021
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Based on the amount of noise produced by Paraswap errors in our alerts channel, we deemed it appropriate to demote these errors to warnings and instead record success/failure counts of the single order solver grouped by solver name.
Note that this change required passing
Arc<dyn SolverMetrics>through the trait methodSolver::solvewhich remains unused in many places (apart from the single order solver). However, this PR serves as a good preparation for recording other metrics to come (refined time counters on different stages of solving, etc...).Test Plan
I recall that @fleupold had done some sort of manual test for metrics at one point and provided the result data in some strange prometheus file format. I could do that if it seems appropriate.Run the solver locally pointed at the production orderbook with just the Paraswap solver enabled
Connect to the metrics api and find something like this in the logs