Skip to content

JDBC - Add OTEL span attributes for number of rows returned/affected by queryΒ #10129

@doppleware

Description

@doppleware

Is your feature request related to a problem? Please describe.

Not directly a problem but I am trying to draw correlations between performance problems and number of rows returned by query

Describe the solution you'd like

Similar to the Micrometer implementation:
https://jdbc-observations.github.io/datasource-micrometer/docs/current/docs/html/#observability-spans
It would be awesome to see the attributes jdbc.row-affected jdbc.row-count on the db spans.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds triageNew issue that requires triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions