module OpenTelemetry::Instrumentation::PG::Constants
Constants
- COMPONENTS_REGEX_MAP
- EXEC_ISH_METHODS
These are all alike in that they will have a SQL statement as the first parameter. That statement may possibly be parameterized, but we can still use it - the obfuscation code will just transform $1 -> $? in that case (which is fine enough).
- EXEC_PREPARED_ISH_METHODS
The following methods take a prepared statement name as their first parameter - everything after that is either potentially quite sensitive (an array of bind params) or not useful to us. We trace them all alike.
- POSTGRES_COMPONENTS
- PREPARE_ISH_METHODS
The following methods all take a statement name as the first parameter, and a SQL statement as the second - and possibly further parameters after that. We can trace them all alike.
- SQL_COMMANDS
A list of SQL commands, from: www.postgresql.org/docs/current/sql-commands.html Commands are truncated to their first word, and all duplicates are removed, This favors brevity and low-cardinality over descriptiveness.
- UNMATCHED_PAIRS_REGEX