Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EASY] Improve logging for submitting transactions (#3158)
# Description There was a wish to associate MEV blocker request logs with transactions sent by the driver. This is currently not possible for 2 reasons: 1. there is no log right after submitting the tx so associating logs by timestamp is not possible 2. the `/settle` handler spawns a new task to make sure transactions get cancelled (if needed) even when the autopilot terminates the request. Unfortunately how we pass around `request_ids` (which could also be used to associated these logs) is very convoluted and was overlooked here. Since the spawned task has its request_id variable not populated it generates a new id which does not match the original id. # Changes 1. add log right after submitting a tx. Additional tracing information we get by default are `request_id`, `solver` and `mempool` type 2. spawn `/settle` task in a way that preserves the original `request_id` Reference slack [thread](https://cowservices.slack.com/archives/C0375NV72SC/p1733768490743619)
- Loading branch information