Skip to main content

set_annotation_enabled

Function set_annotation_enabled 

Source
pub fn set_annotation_enabled(enabled: bool)
Expand description

Globally enables or disables SQL trace-context annotation (disabled by default).

While disabled, annotate_sql is a pass-through and executors delegate statements untouched — prepared-statement reuse for all traffic at the cost of losing statement-level trace correlation. Intended to be set once at process startup from application configuration.