Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip PreparedStatement wrappers #9399

Merged
merged 2 commits into from
Sep 7, 2023

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Sep 6, 2023

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 as a code owner September 6, 2023 10:34
Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

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
46 checks passed
@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