OpenTelemetry SDK
    Preparing search index...
    ATTR_DB_QUERY_TEXT: "db.query.text" = ...

    The database query being executed.

    SELECT * FROM wuser_table where username = ?
    
    SET mykey ?
    

    For sanitization see Sanitization of db.query.text. For batch operations, if the individual operations would all have the same db.query.text when executed as non-batch operations, then that query text SHOULD be used. Otherwise, all of the individual query texts SHOULD be concatenated with separator ; or some other database system specific separator if more applicable. Parameterized query text SHOULD NOT be sanitized. Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk.