Module tracing

Source
Expand description

Tracing utilities for explainable plans.

Structs§

ContextHash
A helper struct for wrapping entries that represent the invocation context of a function or method call into an object that renders as their hash.
ExtractStr 🔒
Helper struct that implements field::Visit and is used in the GetStr::get_str implementation for span::Attributes.
PlanTrace
A tracing layer used to accumulate a sequence of explainable plans.
TraceEntry
A struct created as a reflection of a trace_plan call.

Traits§

GetStr 🔒
Helper trait used to extract attributes of type &'static str.

Functions§

dbg_misc
Create a span identified by segment and trace misc in it.
dbg_plan
Create a span identified by segment and trace plan in it.
trace_plan
Trace a fragment of type T to be emitted as part of an EXPLAIN OPTIMIZER TRACE output.