feat(database): [Data Collection 5] Apply query policy#5801
Draft
adinauer wants to merge 2 commits into
Draft
Conversation
Suppress SQL statement descriptions when database query data collection is disabled while retaining database system, name, timing, status, and other structural span metadata. Preserve existing statement collection when Data Collection is absent. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
📲 Install BuildsAndroid
|
This was referenced Jul 21, 2026
Bring the queue option removal and preceding stack updates into this layer.
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 (Data Collection)
📜 Description
Apply the Data Collection database query policy to JDBC and Android SQLite instrumentation.
Disabling query data removes SQL statement descriptions while preserving technical database metadata such as system, database name, timing, main-thread state, and call stacks. Existing always-collect behavior remains unchanged when Data Collection is absent.
💡 Motivation and Context
Java cannot reliably separate inline SQL values from structural query text. Suppressing the full statement when query data is disabled provides a conservative policy without losing non-query diagnostic metadata.
Refs #5666
💚 How did you test it?
./gradlew spotlessApply apiDump./gradlew apiCheck📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Apply directional HTTP body policies to the integrations that collect body content.
#skip-changelog