scrub_db_query

Function scrub_db_query 

Source
pub fn scrub_db_query(
    raw_query: &str,
    sub_op: &str,
    db_system: Option<&str>,
    db_operation: Option<&str>,
    collection_name: Option<&str>,
    span_origin: Option<&str>,
) -> (Option<String>, Option<Vec<Statement>>)
Expand description

Scrubs a DB query string based on relevant attributes within DB spans.

Returns (None, None) if the query cannot be scrubbed.