feat(metrics): instrument ingester query response

Adds a QueryExec decorator that transparently injects instrumentation
into an Ingester query response stream.

This captures the wall-clock duration of time a query stream has taken
to be read to completion (or aborted) by the caller, faceted by
stream completed / dropped and batch error / all OK.

Also records the distribution of row, record batch, and partition count
per query to quantify the amount of data being read per query.
pull/24376/head
Dom Dwyer 2023-02-17 23:55:45 +01:00
parent a2679aee9f
commit f5e7c65fef
No known key found for this signature in database
GPG Key ID: E4C40DBD9157879A
2 changed files with 1148 additions and 0 deletions

View File

@ -9,6 +9,7 @@ pub(crate) mod response;
// Instrumentation
pub(crate) mod exec_instrumentation;
pub(crate) mod result_instrumentation;
pub(crate) mod tracing;
#[cfg(test)]

File diff suppressed because it is too large Load Diff