Support sqlcomment-in-db.statement
as an opt-in for db driver/ORM instrumentors
#3107
Labels
db.statement
as an opt-in for db driver/ORM instrumentors
#3107
What problem do you want to solve?
Some platforms that use the Python db client component instrumentors don't need
db.statement
population with sqlcomment -- see this issue comment. Currently this always happens as long as sqlcommenting is enabled, e.g.:Describe the solution you'd like
Implement support of a config so that Python db client component instrumentors only add sqlcomment to
db.statement
when opted in. Default should not include the comment.Changes are required in:
Describe alternatives you've considered
This is a short-term solution. Longer term, we need to start with a general semconv upgrade of the db driver/ORM instrumentors: #2453. Part of this is moving from assignment of
db.statement
todb.query.text
.Additional Context
Will append to changes made for #2936 and #2938
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: