Hello,
an application I am maintaining is using tracing and tokio.
The application itself is quite successful and tracing is used for logs and metrics.
Those metrics:
- Drive quite a bit of value, and
- Can wake up fellow engineers at night
It is natural that we are trying to add testing also for tracing.
However, I am finding it quite challenging.
Ideally I would like to start something at the very beginning of the unittest, carry out the test logic, and get all the events that have been emitted.
Then I would be able to assert on those events.
What would be the best way to implement this?