Skip to content

support for opentelemetry db.query.summary calculation #106

Description

@blumamir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions