Any type implementing this trait can be passed to Session
to collect execution history of specific queries.
In order to use it call set_history_listener
on
Query
, PreparedStatement
, etc…
The listener has to generate unique IDs for new queries, attempts and speculative fibers.
These ids are then used by the caller to identify them.
It’s important to note that even after a query is finished there still might come events related to it.
These events come from speculative futures that didn’t notice the query is done already.