What are you trying to achieve?
In some DBs, the query can contain a placeholder that should be filled with given values:
in MySQL: connection.query('SELECT * FROM 'books' WHERE 'author' = ?', ['David'])
in Postgres: client.query('SELECT $1::text as message', ['Hello world!']
These values are not part of db.statement attribute and are added to the span when the user gives the flag: enhancedDatabaseReporting:true in the instrumentation configuration. However, there is no suitable parameter for it in the semantic conventions.
What did you expect to see?
I expected that each relevant DB will have a suitable attribute in the semantic convention. something like: MYSQL_VALUES or PG_VALUES.
What are you trying to achieve?
In some DBs, the query can contain a placeholder that should be filled with given values:
in MySQL:
connection.query('SELECT * FROM 'books' WHERE 'author' = ?', ['David'])in Postgres:
client.query('SELECT $1::text as message', ['Hello world!']These values are not part of
db.statementattribute and are added to the span when the user gives the flag:enhancedDatabaseReporting:truein the instrumentation configuration. However, there is no suitable parameter for it in the semantic conventions.What did you expect to see?
I expected that each relevant DB will have a suitable attribute in the semantic convention. something like:
MYSQL_VALUESorPG_VALUES.