Skip to content

feat(sql): SQL Sanitizing - #6794

Draft
lbloder wants to merge 1 commit into
9.x.xfrom
feat/sql-sanitizing
Draft

lbloder wants to merge 1 commit into
9.x.xfrom
feat/sql-sanitizing

Conversation

@lbloder

@lbloder lbloder commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

PR Stack (SQL Sanitizing)


📜 Description

Collection branch for SQL query sanitizing in the JDBC and Android SQLite integrations. The stack PRs listed above are merged into this branch with merge commits; this PR is squash-merged into 9.x.x at the end.

💡 Motivation and Context

Database spans carry the raw SQL statement today, including literal values. The stack sanitizes statements with OpenTelemetry Java's SQL grammar, vendored with its rules unchanged, and adds db.query.text, db.query.summary and db.stored_procedure.name to the spans.

💚 How did you test it?

See the stack PRs.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

Stack PRs: vendor the grammar into sentry core, then the JDBC integration, then the Android SQLite integration.

@github-actions

Copy link
Copy Markdown
Contributor
Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- SQL Sanitizing ([#6794](https://github.com/getsentry/sentry-java/pull/6794))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 4cf72b6

@sentry

sentry Bot commented Nov 26, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.66.0 (1) release

⚙️ sentry-android Build Distribution Settings

This branch has not been deployed

No deployments
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.

1 participant