Skip to content

Add attribute db.values to database semantic conventions #716

@haddasbronfman

Description

@haddasbronfman

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions