-
Notifications
You must be signed in to change notification settings - Fork 152
Description
Background
To generate quotes multiple solver teams run quite a bit of infra so they are relatively expensive. That's why we'd like to have more detailed metrics on who (i.e. which integrator) requests how many quotes.
That way we can make a better informed analysis whether an integration is actually a net positive or costs more in quote rewards than they bring in profit.
Details
For each integrator we'd like to count how many quotes they have requested. Integrators can be identified by their appcode provided in the appdata. For example here the appCode references the Seer integration.
Currently the backend doesn't care about the appcode and therefor also does not parse it. For this feature we'll have to adjust the appdata parsing to also look for the appCode (if it exists).
That data then needs to be passed into the quoting logic where the metrics should be tracked.
I think it's probably sufficient to track top level quote requests (and not also track the sub requests we issue in turn to the individual connected solvers).
Acceptance criteria
The full deliverable of this PR is adding enough metrics to build a simple grafana dashboard with them.