Skip to content

feat(graphql): [Data Collection 9] Apply outgoing response body policy#5805

Draft
adinauer wants to merge 2 commits into
feat/data-collection-outgoing-request-bodyfrom
feat/data-collection-outgoing-response-body
Draft

feat(graphql): [Data Collection 9] Apply outgoing response body policy#5805
adinauer wants to merge 2 commits into
feat/data-collection-outgoing-request-bodyfrom
feat/data-collection-outgoing-response-body

Conversation

@adinauer

@adinauer adinauer commented Jul 21, 2026

Copy link
Copy Markdown
Member

PR Stack (Data Collection)


📜 Description

Apply the outgoing response body policy to GraphQL Java execution results attached by ExceptionReporter.

Explicit Data Collection controls the serialized GraphQL response independently from the request document. When Data Collection is absent, the existing sendDefaultPii and maxRequestBodySize gate remains unchanged.

💡 Motivation and Context

A server-side GraphQL execution result is outgoing response body content and can contain customer data. It requires a directional policy distinct from the incoming GraphQL document and variables.

Refs #5666

💚 How did you test it?

  • ./gradlew spotlessApply apiDump
  • DataCollectionResolverTest
  • ExceptionReporterTest
  • ./gradlew apiCheck

📝 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 request and response header collection behavior across HTTP integrations.

#skip-changelog

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

Use the Data Collection outgoing response body decision when attaching GraphQL execution results. Preserve the sendDefaultPii and maxRequestBodySize gate 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 6baa995

@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 363.44 ms 441.58 ms 78.14 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