Skip to content

feat(core): Disable OPTIONS request tracing by default - #6254

Draft
adinauer wants to merge 2 commits into
9.x.xfrom
fix/trace-options-requests-default-v9
Draft

adinauer wants to merge 2 commits into
9.x.xfrom
fix/trace-options-requests-default-v9

Conversation

@adinauer

@adinauer adinauer commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

📜 Description

Change traceOptionsRequests to default to false in version 9 and add a regression test for the new default.

Applications that need transactions for HTTP OPTIONS requests can continue to opt in by setting the option to true.

💡 Motivation and Context

OPTIONS requests are commonly CORS preflight traffic and generally do not provide useful tracing data. Version 9 is the breaking-change boundary for aligning the Java SDK with the tracing specification, which defines this option as disabled by default.

Resolves #4163

💚 How did you test it?

  • ./gradlew spotlessApply apiDump
  • ./gradlew ':sentry:test' --tests="*SentryOptionsTest*" --info (143 tests passed)

📝 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

Update the version 9 Java and Android option documentation in sentry-docs.

adinauer and others added 2 commits October 14, 2026 11:37
Skip tracing HTTP OPTIONS requests by default in v9 to avoid creating
transactions for CORS preflight traffic. Applications can opt back in with
traceOptionsRequests.

Fixes #4163
Co-Authored-By: Codex <noreply@openai.com>
@github-actions

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 882e600

@sentry

sentry Bot commented Oct 14, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.59.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