Repository navigation
Conversation
This was referenced Nov 30, 2026
Contributor
PR risk: lowFor commit This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Stack (SQL Sanitizing)
📜 Description
Adds an agent rule,
.cursor/rules/sql_sanitizing.mdc, and its row in theAGENTS.mdrule index. Documentation only; no code changes.The rule covers:
SqlSpanData→SqlQueryAnalyzer→OtelSqlSanitizer→ generatedAutoSqlSanitizer) and where each contract is documented.scripts/sync-otel-sql.shmay write, as enforced by--checkin CI, and which Sentry-owned files live next to them.AutoValue_*classes), plus a done condition.known-leaks.txtratchet, the per-case exemption gap, and the attribution to update when taking new upstream test cases.The rule points to the existing Javadoc, file headers, script comments and
--helprather than restating them.💡 Motivation and Context
Syncing the vendored grammar is a manual, rarely repeated task with several steps the script cannot enforce. Writing them down lets an agent (or a person) run a sync without rediscovering them. The rule is a separate PR so it can be reviewed independently of the code PRs. It sits at the end of the stack because it describes files those PRs add.
The caller picks the upstream ref for a sync; the current pin is a commit on upstream
main.💚 How did you test it?
sentry/build.gradle.ktsexclusions and thegenerateJflextask; the script's transforms, failure behaviour and--help; the test KDoc; the case format inanalyzer-cases.json; and theTHIRD_PARTY_NOTICES.mdentries.instrumentation-api-incubator/build.gradle.kts,de.jflex:jflex:1.9.1) checked at the pinned commit.make format api: no changes.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
#skip-changelog