Skip to content

Skip PreparedStatement wrappers#9399

Merged
laurit merged 2 commits into
open-telemetry:mainfrom
laurit:proxy-prepared-statement
Sep 7, 2023
Merged

Skip PreparedStatement wrappers#9399
laurit merged 2 commits into
open-telemetry:mainfrom
laurit:proxy-prepared-statement

Conversation

@laurit

@laurit laurit commented Sep 6, 2023

Copy link
Copy Markdown
Contributor

Resolves #9359
If prepared statement doesn't have attached sql it is probably a wrapper, ignore it. Span will be created when the invocation chain reaches the actual prepared statement that has the attached sql. An alternative fix would be to ignore known wrapper class like org.datanucleus.store.rdbms.ParamLoggingPreparedStatement from the attached issue.

@laurit laurit requested a review from a team September 6, 2023 10:34

@mateuszrzeszutek mateuszrzeszutek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@laurit laurit merged commit decb466 into open-telemetry:main Sep 7, 2023
@laurit laurit deleted the proxy-prepared-statement branch September 7, 2023 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot see actual SQL in Azure Applications Insight while using Data Nucleus and JDBC

3 participants