//! Tracing utilities for drizzle query and transaction observability.
//!
//! Enable the `tracing` feature to emit spans and events via the `tracing` crate.
//! These macros no-op when the feature is disabled, avoiding `#[cfg]` boilerplate
//! at every call site.
/// Emit a debug-level tracing event with the SQL text and parameter count.
///
/// ```rust
/// # let _ = r####"
/// drizzle_trace_query!(&sql_str, params.len());
/// # "####;
/// ```
/// Emit an info-level tracing event for transaction lifecycle (begin, commit, rollback).
///
/// ```rust
/// # let _ = r####"
/// drizzle_trace_tx!("begin", "sqlite.rusqlite");
/// drizzle_trace_tx!("commit", "postgres.sync");
/// # "####;
/// ```