A Sentry SDK for Java, Android and other JVM languages.
Repo getsentry/sentry-java, read from GitHub 15 h ago. getsentry has not joined Take My Repo.
Sentry.replay().pauseTouchTracking() and resumeTouchTracking() to stop recording touches on sensitive screens, such as a custom PIN pad, while the screen recording continues. Touch tracking stays paused until resumeTouchTracking() is called, also for new replays and after resume() (#6546)debug is off (#6600)SentryNavEffect within the app (e.g., closing the Activity that covered it, swiping back to its ViewPager2 page, or dismissing a dialog over it) now starts a new navigation transaction for the current destination if the previous one finished, so spans produced upon return can now be consistently captured (#6482)ui.load transactions are bound to IScope in preference to Nav3 transactions when transitioning between Activities, matching Nav2 behavior (API 29+) (#6484)SentryNavEffect to the most recently visited Nav3 root (#6483)deadline_exceeded, so ui.load transactions with TTID, TTFD or app start values that are hours long after a device sleep no longer report ok (#6599)AndroidConnectionStatusProvider is created with a custom Handler, instead of failing because the Handler overload needs API 26 (#6634)SpanProcessor is configured. If you construct the OpenTelemetry SDK manually while using sentry-opentelemetry-otlp classes directly, configure a span processor. Without one, Sentry cannot inspect outgoing request URLs and may inject sentry-trace and baggage headers into destinations excluded by tracePropagationTargets. Standard OTLP exporter, Sentry Java agent, and agentless setups already configure one.AnrV2Integration, AnrProfilingIntegration, WindowContentChangedCallback, the deprecated SentryUserFeedbackButton and SentryUserFeedbackDialog.Builder, and the internal sentry-android-core classes are now final, and ActivityLifecycleCallbacksAdapter is now abstract (#6494)WebView using SentryWebViewTracing.addTracePropagation(webView, "example.com") (#6395)
androidx.webkit:webkit dependency. Only list hosts whose content you control.options.webViewTracing.allowedHosts, or the io.sentry.webview-tracing.allowed-hosts manifest entry, to call addTracePropagation(webView) without passing hosts (#6516)@Scheduled method with Sentry Crons by setting sentry.monitor-scheduled-tasks=true, without adding @SentryCheckIn to each method. Sentry creates each monitor from the method's @Scheduled schedule. Exclude methods with sentry.exclude-scheduled-tasks (#6275, #6276, #6277)SentryJobListener can send a monitor config derived from the trigger with check-ins, so Sentry creates or updates the monitor from code. Set the sentry-upsert-monitor-config job or trigger data key to "true" to send the schedule (#6216)@Scheduled with @SentryCheckIn check-ins, so Sentry creates or updates the monitor from code. Set @SentryCheckIn(upsertMonitorConfig = true) to send the schedule (#6215)OTEL_BSP_SCHEDULE_DELAY (otel.bsp.schedule.delay) for how often spans are sent to Sentry, instead of always waiting 5 seconds (#6388)sentry-android-ndk-outproc dependency and exclude sentry-native-ndk. Requires Android 11 (API level 30) or later.sentry-bom as a platform (#6466)
sentry-android-core with an older sentry-android-fragment, which failed at runtime. Maven builds resolve as before.sentry-bom now also includes sentry-android-distribution.LazyColumn, LazyRow, lazy grids, and Pager on Jetpack Compose foundation 1.10+ (#6548)Sentry.init, Session Replay, and capturing events no longer wait for that registration (#6537)sentry.graphql.enable-specification-error-type-filtering (#6092)SentryOkHttpInterceptor hanging forever on responses whose body has no known length, such as Server-Sent Events or a gzipped response, when network details are enabled for the URL (#6231)SentryOkHttpInterceptor now captures network request and response details only while Session Replay is recording or buffering (#6486)onCreate for hundreds of milliseconds.multipart/mixed, text/event-stream) for failed requests, which blocked @defer and @stream (#6432)Environment to the Scope, allowing you to overwrite the Environment set on the options (#5772)
Environment is also applied to the trace envelope header (DSC), logs, metrics and profiles, so all telemetry of a trace reports the same environmentattachTracingHeaders flag to SentryApolloInterceptor to stop attaching sentry-trace and baggage headers to Apollo v2 requests (#6414)
tracePropagationTargets. Pass attachTracingHeaders = false to opt out.maskViewClasses/unmaskViewClasses lists by using constant-time class lookups (#6410)SentryTraced, now let any idle parent transaction finish after the idle timeout (3s by default) with status ok, rather than waiting for the deadline (30s by default) and reporting deadline_exceeded (#6396)
SentryTraced, expect shorter durations and lower failure rates for affected ui.load and navigation transactions, plus changes to metrics measured over the transaction's lifetime, such as slow and frozen frames.startProfiler is called before a requested stop takes effect at the end of the current chunk (#6291)
TRACE mode while sampled spans were active. On API 34 and lower, every later profile also stopped after one chunk.dist on ANR and app-exit events when the release has no +versionCode (#6450)
invalid character '@'). dist is now left empty unless options.dist is set or the release contains a version code.8.64.0 (#6537).SentryNavEffect (#6305)
NullPointerException: Cannot invoke "String.length()") when dexing the SDK with AGP 8.0 and older, a regression from 8.61.1 (#6356)8.64.0 (#6537).SIGABRT on the RenderThread) when stopping a replay that uses the canvas screenshot strategy (#6342)stop() is called right after flush() in buffer mode (#6340)sentry.io), not to self-hosted Sentry, not to any other connection your app makes, and not if you set your own SentryOptions.setSslSocketFactory.eglDestroySurface (#6282)ScreenshotUtils.takeMaskedScreenshot so Hybrid SDKs can capture screenshots masked according to SentryAndroidOptions.getScreenshot() (#6281)8.64.0 (#6537).beforeSend* callback throws and report it using DiscardReason.CALLBACK_ERROR.tracesSampler throws instead of inheriting the parent sampling decision or falling back to tracesSampleRate (#6163).beforeSpan throws without disrupting requests, covering OkHttp, OpenFeign, GraphQL, Ktor, and Apollo—including Apollo 5 (#6167, #6238).callback_error when a customer event processor throws instead of continuing with a potentially partially processed item. SDK-owned processor failures are logged and processing continues.beforeBreadcrumb throws instead of storing exception details on the breadcrumb.TransactionNameProvider throws, falling back to <unlabeled transaction> (#6241).SentryUserProvider throws and overwrite the user with an empty user object (#6240).profilesSampler throws instead of falling back to profilesSampleRate or inheriting the parent profiling decision (#6164).callback_error in client reports and OnDiscardCallback (#6166).beforeErrorSampling throws while retaining the error event (#6165).SentryOptions instead of a static singleton (#6117)8.64.0 (#6537).