Skip to main content

instrumented_query

Function instrumented_query 

Source
pub async fn instrumented_query<F, T, E>(
    operation: &str,
    table: Option<&str>,
    f: F,
) -> Result<T, E>
where F: Future<Output = Result<T, E>>,
Expand description

Execute a database operation with tracing instrumentation. This creates a span and records the duration as a metric.