pub trait QueryObserver: Send + Sync {
// Required method
fn completed(&self, observation: &QueryObservation);
}Expand description
Metrics/event bridge. Called once per completed or cancelled operation; panics are isolated. The callback must be nonblocking and cannot see SQL, binds, raw input, tenant identifiers, or cursor tokens.
Required Methods§
fn completed(&self, observation: &QueryObservation)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".