pub struct TracingInstrumentation {
pub max_sql_len: usize,
pub slow_threshold: Option<Duration>,
}Expand description
Always-built tracing adapter.
Fields§
§max_sql_len: usizeTruncate db.statement past this many bytes. Default 1024.
slow_threshold: Option<Duration>Emit a WARN-level event when a query’s duration exceeds this.
None disables slow-query warnings.
Trait Implementations§
Source§impl Clone for TracingInstrumentation
impl Clone for TracingInstrumentation
Source§fn clone(&self) -> TracingInstrumentation
fn clone(&self) -> TracingInstrumentation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for TracingInstrumentation
impl Default for TracingInstrumentation
Auto Trait Implementations§
impl Freeze for TracingInstrumentation
impl RefUnwindSafe for TracingInstrumentation
impl Send for TracingInstrumentation
impl Sync for TracingInstrumentation
impl Unpin for TracingInstrumentation
impl UnsafeUnpin for TracingInstrumentation
impl UnwindSafe for TracingInstrumentation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more