Skip to main content

Crate fastrace_diesel

Crate fastrace_diesel 

Source
Expand description

fastrace tracing for Diesel PostgreSQL, MySQL, and SQLite queries.

Query spans record SQL and bind arguments in db.query.text using Diesel’s display format by default. Use FastraceInstrumentation::with_query_capture to disable capture. Connection and transaction spans include database and network metadata.

Structs§

FastraceInstrumentation
Instruments one Diesel connection with OpenTelemetry-compatible fastrace query spans.

Functions§

install_default_instrumentation
Installs instrumentation for all new Diesel connections, regardless of backend.
install_default_mysql_instrumentation
Installs instrumentation before Diesel establishes new MySQL connections.
install_default_postgres_instrumentation
Installs PostgreSQL instrumentation before Diesel establishes new connections.
install_default_sqlite_instrumentation
Installs instrumentation before Diesel establishes new SQLite connections.