[sql] Parse db.operation.name
and db.collection.name
from db.query.text
#2222
Labels
comp:instrumentation.sqlclient
Things related to OpenTelemetry.Instrumentation.SqlClient
enhancement
New feature or request
Milestone
Component
OpenTelemetry.Instrumentation.SqlClient
What is the expected behavior?
The attributes
db.operation.name
anddb.collection.name
are conditionally required "if readily available".Alternatively, they MAY be parsed from
db.query.text
. See relevant footnotes.These attributes are very valuable to end users.
Parsing
db.query.text
is a costly operation. What this issue does not attempt to address is whether parsing operation/collection fromdb.query.text
should be on by default. For now, it should be implemented as opt-in, though later we should decide whether it should be on by default.The text was updated successfully, but these errors were encountered: