Skip to content

ref(core): [Session based Traces for Mobile 5] Rename option to enableSessionTraces#5430

Draft
adinauer wants to merge 1 commit into
fix/session-trace-lifecycle-baggage-freezefrom
ref/session-based-traces-mobile-enable-session-traces
Draft

ref(core): [Session based Traces for Mobile 5] Rename option to enableSessionTraces#5430
adinauer wants to merge 1 commit into
fix/session-trace-lifecycle-baggage-freezefrom
ref/session-based-traces-mobile-enable-session-traces

Conversation

@adinauer
Copy link
Copy Markdown
Member

@adinauer adinauer commented May 13, 2026

PR Stack (Session based Traces for Mobile)


📜 Description

Rename the session trace lifecycle option to enableSessionTraces across the core SDK, Android manifest metadata, external properties, and tests.

The option is now configured as:

  • Java/Kotlin: setEnableSessionTraces(...) / isEnableSessionTraces
  • properties: enable-session-traces
  • Android manifest: io.sentry.traces.enable-session-traces

💡 Motivation and Context

enableSessionTraces is shorter and more directly describes the feature being enabled. This keeps the public API and configuration names aligned before the Session based Traces for Mobile stack lands.

💚 How did you test it?

  • ./gradlew :sentry:test --tests='io.sentry.SentryOptionsTest' --tests='io.sentry.ExternalOptionsTest' --tests='io.sentry.ScopesTest'
  • ./gradlew :sentry-android-core:testDebugUnitTest --tests='io.sentry.android.core.ManifestMetadataReaderTest' --tests='io.sentry.android.core.ActivityLifecycleIntegrationTest' --tests='io.sentry.android.core.internal.gestures.SentryGestureListenerTracingTest'
  • ./gradlew :sentry-android-navigation:testDebugUnitTest --tests='io.sentry.android.navigation.SentryNavigationListenerTest'
  • ./gradlew spotlessApply apiDump

📝 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

Continue the Session based Traces for Mobile stack.

#skip-changelog

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

Rename the session trace lifecycle option to enableSessionTraces across core, Android configuration, and tests.
@sentry
Copy link
Copy Markdown

sentry Bot commented May 13, 2026

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

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