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§
- Fastrace
Instrumentation - 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.