-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
bugSomething isn't workingSomething isn't workingneeds triageNew issue that requires triageNew issue that requires triage
Description
Describe the bug
Hi,
I noticed that the ResultSet
returned by OpenTelemetryPreparedStatement.executeQuery(String)
is not wrapped. It means that when one calls then ResultSet.getStatement()
we get the wrapped statement instead of the OpenTelemetryPreparedStatement
itself.
This can be problematic when we expect to get the same object, for example when statement are used as a Map's key and we want to find back some information.
One example of the problem this creates can be seen here: https://hibernate.atlassian.net/browse/HHH-19280
Steps to reproduce
N/A
Expected behavior
ResultSet.getStatement()
returns the same object that created the ResultSet
Actual behavior
ResultSet.getStatement()
does not return the same object that created the ResultSet
Javaagent or library instrumentation version
2.14.0-alpha
Environment
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds triageNew issue that requires triageNew issue that requires triage