Skip to content

Commit

Permalink
Observability To Colocated Auction Runloop (#1930)
Browse files Browse the repository at this point in the history
# Description

This PR refactors the autopilot runloop to add some additional
observability to the solver competition. This will allow us to have a
better idea of how individual solvers are behaving.

As a note on the code and how to record metrics - I created methods on
the `Metrics` type in order to increment/observe things. I'm not 100%
happy with this, but wanted to see what others think in terms of
legibility.

# Changes

- [x] Added gauge for last auction ID seen in the runloop.
- [x] Specific error types for all driver interactions
- [x] Added metrics counters for results of driver interactions
(solving, revealing and settling), and specifically a histogram for
`solve` timings.

## How to test

The code should be covered by existing E2E tests in the services.

---------

Co-authored-by: Felix Leupold <felixleupold90@gmail.com>
  • Loading branch information
Nicholas Rodrigues Lordello and fleupold authored Oct 9, 2023
1 parent 5be8e8f commit fba44ba
Show file tree
Hide file tree
Showing 2 changed files with 329 additions and 144 deletions.
Loading

0 comments on commit fba44ba

Please sign in to comment.