Skip to content

feat(spring): [Data Collection 6] Apply incoming request body policy#5802

Draft
adinauer wants to merge 2 commits into
feat/data-collection-database-query-datafrom
feat/data-collection-incoming-request-body
Draft

feat(spring): [Data Collection 6] Apply incoming request body policy#5802
adinauer wants to merge 2 commits into
feat/data-collection-database-query-datafrom
feat/data-collection-incoming-request-body

Conversation

@adinauer

@adinauer adinauer commented Jul 21, 2026

Copy link
Copy Markdown
Member

PR Stack (Data Collection)


📜 Description

Apply the incoming request body policy to Spring MVC request caching and extraction in the Spring, Spring Jakarta, and Spring 7 integrations.

The policy controls body content only. Existing MIME type, length, and maxRequestBodySize checks remain additive, and legacy sendDefaultPii behavior is preserved when Data Collection is absent.

💡 Motivation and Context

Incoming server request bodies can contain customer data and need a direction-specific collection decision without changing technical request metadata.

Refs #5666

💚 How did you test it?

  • ./gradlew spotlessApply apiDump
  • Spring, Spring Jakarta, and Spring 7 filter tests

📝 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.

🔮 Next steps

Apply the remaining client and server HTTP body directions.

#skip-changelog

⚠️ Merge this PR using a merge commit (not squash). Only the collection branch is squash-merged into main.

Use the Data Collection incoming request body decision for servlet request caching and event body extraction across all Spring variants. Keep existing body size, content length, and MIME type limits while preserving sendDefaultPii behavior when Data Collection is absent.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 2ce1e51

@adinauer adinauer mentioned this pull request Jul 21, 2026
8 tasks
@sentry

sentry Bot commented Jul 21, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 320.74 ms 363.64 ms 42.89 ms
Size 0 B 0 B 0 B

Bring the queue option removal and preceding stack updates into this layer.
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