pub fn annotate_sql(sql: &str) -> Cow<'_, str>Expand description
Appends the current sampled span’s traceparent as a SQL comment to sql.
Returns Cow::Borrowed (no allocation) when there is no sampled span
context; callers can use this to skip any annotation-dependent work.