Module scylla::history

source ·
Expand description

Collecting history of query executions - retries, speculative, etc.

Structs§

  • Id of a single attempt within a query, a single request sent on some connection.
  • HistoryCollector can be used as HistoryListener to collect all the query history events. Each event is marked with an UTC timestamp.
  • Id of a single query, i.e. a single call to Session::query/execute/etc.
  • Id of a speculative execution fiber. When speculative execution is enabled the driver will start multiple speculative threads, each of them performing sequential attempts.
  • Structured representation of queries history.
    HistoryCollector collects raw events which later can be converted to this pretty representation.
    It has a Display impl which can be used for printing pretty query history.

Enums§

Traits§

  • 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.

Type Aliases§