Conversation
Update Sentry dependencies to latest stable versions: - Gradle plugin: 6.17.0 → 6.22.0 - Android SDK: 8.51.0 → 8.56.0 - sentry-native-ndk: 0.16.0 → 0.16.6 Adopt new SDK features: - SpanOptions with explicit start timestamps (8.53.0) - Feedback shake runtime toggle (8.53.0) - User feedback screenshot attachment (8.54.0) - Manual Session Replay flush (8.54.0) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019b6H1VxjAPa7mtL1facDEc
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #272 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 16 16
Lines 883 891 +8
Branches 67 67
=====================================
- Misses 883 891 +8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Update sentryVersion to 8.57.0 which adds: - MemoryLimiter app exit reporting via ApplicationExitInfo (automatic) - Monotonic clock for HTTP rate-limit backoff (automatic) - Breadcrumb timestamp ordering fix No code changes needed — all 8.57.0 features are automatic. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01THGBKqe7or32K51BA17CSj
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.
Summary
Bumps Sentry dependencies to latest stable versions:
Changelogs
Gradle Plugin 6.17.0 → 6.22.0
optimization.enableDSL; eliminate reflection for SDK class-availability checks (~1% init time reduction)optimization.enabledetection when variant is wrapped by AGP analyticsSDK 8.51.0 → 8.57.0
RGB_565, batch scope-persistence disk writes, reduce SDK thread count, prevent cold app start inflation on API 35+SpanOptions; runtime shake-to-report toggle viaSentry.feedback().enableOnShake()/disableOnShake()Sentry.replay()(start(),stop(),pause(),resume(),flush()); screenshot attachment for user feedback widget; app vitals on standaloneapp.startchildrenSession.State.Unhandledfor unhandled errors that don't terminate the process; singleui.composespan perSentryTracedon initial composition; ANR profiling moved out of experimentalSentryTraced, prevent dangling spans on recomposition failure, fix Android connection status caching; bumps sentry-native to 0.16.6MemoryLimiterapp exit reporting viaApplicationExitInfo(automatic); monotonic clock for HTTP rate-limit backoff; breadcrumb timestamp ordering fixsentry-native 0.16.0 → 0.16.6
sentry_app_hang_pause, scope/transport/callback APIs), forwardenable_logsthroughNdkOptions, various fixessentry_crashfor deliberate crash testing, thread stackwalk mode, 68 perf-monitoring functions promoted to stablesentry_is_enabledAPI; security fixes for buffer overflows, out-of-bounds reads, and path traversal vulnerabilitiesNew features implemented
SpanOptions with explicit start timestamps (SDK 8.53.0) — In
MainFragment.checkout(), aSentryDateis captured viaSentryNanotimeDateright after the checkout transaction starts (before scope configuration and dialog setup). ASpanOptionsobject passes this timestamp as the explicit start time for theprocess_cart_datachild span, so the span timing accurately reflects the full checkout setup duration. DemonstratesSpanOptions.setStartTimestamp()andISpan.startChild(operation, description, SpanOptions).Feedback shake runtime toggle (SDK 8.53.0) — In
MainFragment.checkout(),Sentry.feedback().disableOnShake()is called at the start of checkout to suppress accidental feedback during the checkout flow. After checkout completes (both success and failure paths),Sentry.feedback().enableOnShake()re-enables shake-to-report. Demonstrates the runtime toggle API with a natural use case: preventing feedback interruptions during critical user flows.User feedback screenshot attachment (SDK 8.54.0) — Added
io.sentry.feedback.enable-attach-screenshot=trueinAndroidManifest.xml. Enables the screenshot attachment button in the feedback widget so users can attach a screenshot when submitting feedback.Manual Session Replay flush (SDK 8.54.0) — In
MainFragment.processDeliveryItem(),Sentry.replay().flush()is called after the checkout failure exception is captured. This ensures the replay segment around the checkout error is sent immediately rather than waiting for the buffer to fill.Features skipped (with technical blockers)
sentry_app_hang_pause,sentry_scope_remove_fingerprint,sentry_options_set_before_send_feedback,sentry_scope_set_span,sentry_crash,sentry_is_enabled,sentry_options_set_thread_stackwalk_mode,sentry_value_foreach_*) — C-level APIs not exposed through the Java/Kotlin Android SDK; only accessible via JNI which the demo does not use directlyenable_logsthroughNdkOptions(sentry-native 0.16.3) — Automatic;options.getLogs().setEnabled(true)is already set inMyApplication, so the NDK option is forwarded without code changesio.sentry.standalone-app-start-tracing.enableis alreadytruein the manifest, soapp.vitals.start.screenandapp.vitals.start.typeare set automaticallySession.State.Unhandled(SDK 8.55.0) — Internal SDK behavior for session state tracking; automatically categorizes sessions with unhandled errors that don't crash. No app-level code changes neededui.composespan perSentryTraced(SDK 8.55.0) — Behavioral improvement to existingSentryTracedcomposables; automatic, no code changes neededio.sentry.anr.profiling.sample-rateis already set to1.0in the manifest; promotion from experimental requires no changesMemoryLimiterapp exit reporting (SDK 8.57.0) — Automatic; the SDK now reportsMemoryLimiterexits recovered fromApplicationExitInfowithout any code changesvariants {}DSL enables per-variant configuration; the app applies config uniformly to all variants, so no per-variant override is neededBuild verification
Build could not be fully verified —
./gradlew assembleDebugfails with HTTP 403 fromdl.google.comdue to network restrictions in the remote execution environment. This is an infrastructure issue, not a code issue. The Gradle plugin version, SDK version, and native-ndk version bumps are straightforward dependency updates, and the new API calls (SpanOptions,SentryNanotimeDate,ISpan.startChildwithSpanOptions,Sentry.feedback().disableOnShake()/enableOnShake(),Sentry.replay().flush()) were verified against the sentry-java 8.57.0 release notes and match the published API surface.🤖 Generated with Claude Code
https://claude.ai/code/session_01THGBKqe7or32K51BA17CSj