As this library already traverse the sql text and extract useful info like table names and commands, I wonder if you ever considered to also collect the db.query.summary text which is an opentelemetry semantic convention attribute with specification for how to build it.
I am not an expert myself, and cannot estimate if it's low or high effort and what are all the possible edge cases, but am curious if you have plans to support it anytime in the future, or if you already experimented with it and can share insights?
Could be so neat to have the ability to extract it in an opentelemetry collector processor and enhance the spans with this attribute. It can be super useful for metrics, analysis and UX (to show this value as the span name in trace views, and to be able to index and search by it).
Thanks again for the great work
As this library already traverse the sql text and extract useful info like table names and commands, I wonder if you ever considered to also collect the
db.query.summarytext which is an opentelemetry semantic convention attribute with specification for how to build it.I am not an expert myself, and cannot estimate if it's low or high effort and what are all the possible edge cases, but am curious if you have plans to support it anytime in the future, or if you already experimented with it and can share insights?
Could be so neat to have the ability to extract it in an opentelemetry collector processor and enhance the spans with this attribute. It can be super useful for metrics, analysis and UX (to show this value as the span name in trace views, and to be able to index and search by it).
Thanks again for the great work