Skip to content

Latest commit

 

History

History
2990 lines (2018 loc) · 169 KB

CHANGELOG.md

File metadata and controls

2990 lines (2018 loc) · 169 KB

Changelog

Unreleased

Features

Fixes

  • Avoid collecting normal frames (#3782)
  • Ensure android initialization process continues even if options configuration block throws an exception (#3887)
  • Do not report parsing ANR error when there are no threads (#3888)
    • This should significantly reduce the number of events with message "Sentry Android SDK failed to parse system thread dump..." reported
  • Session Replay: Disable replay in session mode when rate limit is active (#3854)

Dependencies

7.17.0

Features

  • Add meta option to set the maximum amount of breadcrumbs to be logged. (#3836)
  • Use a separate Random instance per thread to improve SDK performance (#3835)

Fixes

  • Using MaxBreadcrumb with value 0 no longer crashes. (#3836)
  • Accept manifest integer values when requiring floating values (#3823)
  • Fix standalone tomcat jndi issue (#3873)
    • Using Sentry Spring Boot on a standalone tomcat caused the following error:
      • Failed to bind properties under 'sentry.parsed-dsn' to io.sentry.Dsn

7.16.0

Features

  • Add meta option to attach ANR thread dumps (#3791)

Fixes

  • Cache parsed Dsn (#3796)
  • fix invalid profiles when the transaction name is empty (#3747)
  • Deprecate enableTracing option (#3777)
  • Vendor java.util.Random and replace java.security.SecureRandom usages (#3783)
  • Fix potential ANRs due to NDK scope sync (#3754)
  • Fix potential ANRs due to NDK System.loadLibrary calls (#3670)
  • Fix slow Log calls on app startup (#3793)
  • Fix slow Integration name parsing (#3794)
  • Session Replay: Reduce startup and capture overhead (#3799)
  • Load lazy fields on init in the background (#3803)
  • Replace setOf with HashSet.add (#3801)

Breaking changes

  • The method addIntegrationToSdkVersion(Ljava/lang/Class;)V has been removed from the core (io.sentry:sentry) package. Please make sure all of the packages (e.g. io.sentry:sentry-android-core, io.sentry:sentry-android-fragment, io.sentry:sentry-okhttp and others) are all aligned and using the same version to prevent the NoSuchMethodError exception.

7.16.0-alpha.1

Features

  • Add meta option to attach ANR thread dumps (#3791)

Fixes

  • Cache parsed Dsn (#3796)
  • fix invalid profiles when the transaction name is empty (#3747)
  • Deprecate enableTracing option (#3777)
  • Vendor java.util.Random and replace java.security.SecureRandom usages (#3783)
  • Fix potential ANRs due to NDK scope sync (#3754)
  • Fix potential ANRs due to NDK System.loadLibrary calls (#3670)
  • Fix slow Log calls on app startup (#3793)
  • Fix slow Integration name parsing (#3794)
  • Session Replay: Reduce startup and capture overhead (#3799)

7.15.0

Features

  • Add support for feedback envelope header item type (#3687)
  • Add breadcrumb.origin field (#3727)
  • Session Replay: Add options to selectively mask/unmask views captured in replay. The following options are available: (#3689)
    • android:tag="sentry-mask|sentry-unmask" in XML or view.setTag("sentry-mask|sentry-unmask") in code tags
      • if you already have a tag set for a view, you can set a tag by id: <tag android:id="@id/sentry_privacy" android:value="mask|unmask"/> in XML or view.setTag(io.sentry.android.replay.R.id.sentry_privacy, "mask|unmask") in code
    • view.sentryReplayMask() or view.sentryReplayUnmask() extension functions
    • mask/unmask Views of a certain type by adding fully-qualified classname to one of the lists options.experimental.sessionReplay.addMaskViewClass() or options.experimental.sessionReplay.addUnmaskViewClass(). Note, that all of the view subclasses/subtypes will be masked/unmasked as well
      • For example, (this is already a default behavior) to mask all TextViews and their subclasses (RadioButton, EditText, etc.): options.experimental.sessionReplay.addMaskViewClass("android.widget.TextView")
      • If you're using code obfuscation, adjust your proguard-rules accordingly, so your custom view class name is not minified
  • Session Replay: Support Jetpack Compose masking (#3739)
    • To selectively mask/unmask @Composables, use Modifier.sentryReplayMask() and Modifier.sentryReplayUnmask() modifiers
  • Session Replay: Mask WebView, VideoView and androidx.media3.ui.PlayerView by default (#3775)

Fixes

  • Avoid stopping appStartProfiler after application creation (#3630)
  • Session Replay: Correctly detect dominant color for TextViews with Spans (#3682)
  • Fix ensure Application Context is used even when SDK is initialized via Activity Context (#3669)
  • Fix potential ANRs due to Calendar.getInstance usage in Breadcrumbs constructor (#3736)
  • Fix potential ANRs due to default integrations (#3778)
  • Lazily initialize heavy SentryOptions members to avoid ANRs on app start (#3749)

Breaking changes:

  • options.experimental.sessionReplay.errorSampleRate was renamed to options.experimental.sessionReplay.onErrorSampleRate (#3637)
  • Manifest option io.sentry.session-replay.error-sample-rate was renamed to io.sentry.session-replay.on-error-sample-rate (#3637)
  • Change redactAllText and redactAllImages to maskAllText and maskAllImages (#3741)

7.14.0

Features

  • Session Replay: Gesture/touch support for Flutter (#3623)

Fixes

  • Fix app start spans missing from Pixel devices (#3634)
  • Avoid ArrayIndexOutOfBoundsException on Android cpu data collection (#3598)
  • Fix lazy select queries instrumentation (#3604)
  • Session Replay: buffer mode improvements (#3622)
    • Align next segment timestamp with the end of the buffered segment when converting from buffer mode to session mode
    • Persist buffer replay type for the entire replay when converting from buffer mode to session mode
    • Properly store screen names for buffer mode
  • Session Replay: fix various crashes and issues (#3628)
    • Fix video not being encoded on Pixel devices
    • Fix SIGABRT native crashes on Xiaomi devices when encoding a video
    • Fix RejectedExecutionException when redacting a screenshot
    • Fix FileNotFoundException when persisting segment values

Chores

  • Introduce ReplayShadowMediaCodec and refactor tests using custom encoder (#3612)

7.13.0

Features

  • Session Replay: (#3565) (#3609)
    • Capture remaining replay segment for ANRs on next app launch
    • Capture remaining replay segment for unhandled crashes on next app launch

Fixes

  • Session Replay: (#3565) (#3609)
    • Fix stopping replay in session mode at 1 hour deadline
    • Never encode full frames for a video segment, only do partial updates. This further reduces size of the replay segment
    • Use propagation context when no active transaction for ANRs

Dependencies

  • Bump Spring Boot to 3.3.2 (#3541)

7.12.1

Fixes

  • Check app start spans time and ignore background app starts (#3550)
    • This should eliminate long-lasting App Start transactions

7.12.0

Features

  • Session Replay Public Beta (#3339)

    To enable Replay use the sessionReplay.sessionSampleRate or sessionReplay.errorSampleRate experimental options.

    import io.sentry.SentryReplayOptions
    import io.sentry.android.core.SentryAndroid
    
    SentryAndroid.init(context) { options ->
     
      // Currently under experimental options:
      options.experimental.sessionReplay.sessionSampleRate = 1.0
      options.experimental.sessionReplay.errorSampleRate = 1.0
    
      // To change default redaction behavior (defaults to true)
      options.experimental.sessionReplay.redactAllImages = true
      options.experimental.sessionReplay.redactAllText = true
    
      // To change quality of the recording (defaults to MEDIUM)
      options.experimental.sessionReplay.quality = SentryReplayOptions.SentryReplayQuality.MEDIUM // (LOW|MEDIUM|HIGH)
    }

    To learn more visit Sentry's Mobile Session Replay documentation page.

7.11.0

Features

  • Report dropped spans (#3528)

Fixes

  • Fix duplicate session start for React Native (#3504)
  • Move onFinishCallback before span or transaction is finished (#3459)
  • Add timestamp when a profile starts (#3442)
  • Move fragment auto span finish to onFragmentStarted (#3424)
  • Remove profiling timeout logic and disable profiling on API 21 (#3478)
  • Properly reset metric flush flag on metric emission (#3493)
  • Use SecureRandom in favor of Random for Metrics (#3495)
  • Fix UncaughtExceptionHandlerIntegration Memory Leak (#3398)
  • Deprecated User.segment. Use a custom tag or context instead. (#3511)
  • Fix duplicated http spans (#3526)
  • When capturing unhandled hybrid exception session should be ended and new start if need (#3480)

Dependencies

7.10.0

Features

  • Publish Gradle module metadata (#3422)

Fixes

  • Fix faulty span.frame_delay calculation for early app start spans (#3427)
  • Fix crash when installing ShutdownHookIntegration and the VM is shutting down (#3456)

7.9.0

Features

  • Add start_type to app context (#3379)
  • Add ttid/ttfd contribution flags (#3386)

Fixes

  • (Internal) Metrics code cleanup (#3403)
  • Fix Frame measurements in app start transactions (#3382)
  • Fix timing metric value different from span duration (#3368)
  • Do not always write startup crash marker (#3409)
    • This may have been causing the SDK init logic to block the main thread

7.8.0

Features

  • Add description to OkHttp spans (#3320)
  • Enable backpressure management by default (#3284)

Fixes

  • Add rate limit to Metrics (#3334)
  • Fix java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerMapping in Spring Boot Servlet mode without WebMVC (#3336)
  • Fix normalization of metrics keys, tags and values (#3332)

7.7.0

Features

  • Add support for Spring Rest Client (#3199)
  • Extend Proxy options with proxy type (#3326)

Fixes

  • Fixed default deadline timeout to 30s instead of 300s (#3322)
  • Fixed Fix java.lang.ClassNotFoundException: org.springframework.web.servlet.HandlerExceptionResolver in Spring Boot Servlet mode without WebMVC (#3333)

7.6.0

Features

  • Experimental: Add support for Sentry Developer Metrics (#3205, #3238, #3248, #3250)
    Use the Metrics API to track processing time, download sizes, user signups, and conversion rates and correlate them back to tracing data in order to get deeper insights and solve issues faster. Our API supports counters, distributions, sets, gauges and timers, and it's easy to get started:
    Sentry.metrics()
      .increment(
          "button_login_click", // key
          1.0,                  // value
          null,                 // unit
          mapOf(                // tags
              "provider" to "e-mail"
          )
      )
    To learn more about Sentry Developer Metrics, head over to our Java and Android docs page.

7.5.0

Features

  • Add support for measurements at span level (#3219)
  • Add enableScopePersistence option to disable PersistingScopeObserver used for ANR reporting which may increase performance overhead. Defaults to true (#3218)
    • When disabled, the SDK will not enrich ANRv2 events with scope data (e.g. breadcrumbs, user, tags, etc.)
  • Configurable defaults for Cron - MonitorConfig (#3195)
  • We now display a warning on startup if an incompatible version of Spring Boot is detected (#3233)
    • This should help notice a mismatching Sentry dependency, especially when upgrading a Spring Boot application
  • Experimental: Add Metrics API (#3205)

Fixes

  • Ensure performance measurement collection is not taken too frequently (#3221)
  • Fix old profiles deletion on SDK init (#3216)
  • Fix hub restore point in wrappers: SentryWrapper, SentryTaskDecorator and SentryScheduleHook (#3225)
    • We now reset the hub to its previous value on the thread where the Runnable/Callable/Supplier is executed instead of setting it to the hub that was used on the thread where the Runnable/Callable/Supplier was created.
  • Fix add missing thread name/id to app start spans (#3226)

7.4.0

Features

  • Add new threshold parameters to monitor config (#3181)
  • Report process init time as a span for app start performance (#3159)
  • (perf-v2): Calculate frame delay on a span level (#3197)
  • Resolve spring properties in @SentryCheckIn annotation (#3194)
  • Experimental: Add Spotlight integration (#3166)
    • For more details about Spotlight head over to https://spotlightjs.com/
    • Set options.isEnableSpotlight = true to enable Spotlight

Fixes

  • Don't wait on main thread when SDK restarts (#3200)
  • Fix Jetpack Compose widgets are not being correctly identified for user interaction tracing (#3209)
  • Fix issue title on Android when a wrapping RuntimeException is thrown by the system (#3212)
    • This will change grouping of the issues that were previously titled RuntimeInit$MethodAndArgsCaller to have them split up properly by the original root cause exception

7.3.0

Features

  • Added App Start profiling
    • This depends on the new option io.sentry.profiling.enable-app-start, other than the already existing io.sentry.traces.profiling.sample-rate.
    • Sampler functions can check the new isForNextAppStart flag, to adjust startup profiling sampling programmatically. Relevant PRs:
    • Decouple Profiler from Transaction (#3101)
    • Add options and sampling logic (#3121)
    • Add ContentProvider and start profile (#3128)
  • Extend internal performance collector APIs (#3102)
  • Collect slow and frozen frames for spans using OnFrameMetricsAvailableListener (#3111)
  • Interpolate total frame count to match span duration (#3158)

Fixes

  • Avoid multiple breadcrumbs from OkHttpEventListener (#3175)
  • Apply OkHttp listener auto finish timestamp to all running spans (#3167)
  • Fix not eligible for auto proxying warnings (#3154)
  • Set default fingerprint for ANRv2 events to correctly group background and foreground ANRs (#3164)
    • This will improve grouping of ANRs that have similar stacktraces but differ in background vs foreground state. Only affects newly-ingested ANR events with mechanism:AppExitInfo
  • Fix UserFeedback disk cache name conflicts with linked events (#3116)

Breaking changes

  • Remove HostnameVerifier option as it's flagged by security tools of some app stores (#3150)
    • If you were using this option, you have 3 possible paths going forward:
      • Provide a custom ITransportFactory through SentryOptions.setTransportFactory(), where you can copy over most of the parts like HttpConnection and AsyncHttpTransport from the SDK with necessary modifications
      • Get a certificate for your server through e.g. Let's Encrypt
      • Fork the SDK and add the hostname verifier back

Dependencies

7.2.0

Features

  • Handle monitor/check_in in client reports and rate limiter (#3096)
  • Add support for graphql-java version 21 (#3090)

Fixes

  • Avoid concurrency in AndroidProfiler performance data collection (#3130)
  • Improve thresholds for network changes breadcrumbs (#3083)
  • SchedulerFactoryBeanCustomizer now runs first so user customization is not overridden (#3095)
    • If you are setting global job listeners please also add SentryJobListener
  • Ensure serialVersionUID of Exception classes are unique (#3115)
  • Get rid of "is not eligible for getting processed by all BeanPostProcessors" warnings in Spring Boot (#3108)
  • Fix missing release and other fields for ANRs reported with mechanism:AppExitInfo (#3074)

Dependencies

  • Bump opentelemetry-sdk to 1.33.0 and opentelemetry-javaagent to 1.32.0 (#3112)

7.1.0

Features

  • Support multiple debug-metadata.properties (#3024)
  • Automatically downsample transactions when the system is under load (#3072)
    • You can opt into this behaviour by setting enable-backpressure-handling=true.
    • We're happy to receive feedback, e.g. in this GitHub issue
    • When the system is under load we start reducing the tracesSampleRate automatically.
    • Once the system goes back to healthy, we reset the tracesSampleRate to its original value.
  • (Android) Experimental: Provide more detailed cold app start information (#3057)
    • Attaches spans for Application, ContentProvider, and Activities to app-start timings
    • Application and ContentProvider timings are added using bytecode instrumentation, which requires sentry-android-gradle-plugin version 4.1.0 or newer
    • Uses Process.startUptimeMillis to calculate app-start timings
    • To enable this feature set options.isEnablePerformanceV2 = true
  • Move slow+frozen frame calculation, as well as frame delay inside SentryFrameMetricsCollector (#3100)
  • Extract Activity Breadcrumbs generation into own Integration (#3064)

Fixes

  • Send breadcrumbs and client error in SentryOkHttpEventListener even without transactions (#3087)
  • Keep io.sentry.exception.SentryHttpClientException from obfuscation to display proper issue title on Sentry (#3093)
  • (Android) Fix wrong activity transaction duration in case SDK init is deferred (#3092)

Dependencies

7.0.0

Version 7 of the Sentry Android/Java SDK brings a variety of features and fixes. The most notable changes are:

  • Bumping minSdk level to 19 (Android 4.4)
  • The SDK will now listen to connectivity changes and try to re-upload cached events when internet connection is re-established additionally to uploading events on app restart
  • Sentry.getSpan now returns the root transaction, which should improve the span hierarchy and make it leaner
  • Multiple improvements to reduce probability of the SDK causing ANRs
  • New sentry-okhttp artifact is unbundled from Android and can be used in pure JVM-only apps

Sentry Self-hosted Compatibility

This SDK version is compatible with a self-hosted version of Sentry 22.12.0 or higher. If you are using an older version of self-hosted Sentry (aka onpremise), you will need to upgrade. If you're using sentry.io no action is required.

Sentry Integrations Version Compatibility (Android)

Make sure to align all Sentry dependencies to the same version when bumping the SDK to 7.+, otherwise it will crash at runtime due to binary incompatibility. (E.g. if you're using -timber, -okhttp or other packages)

For example, if you're using the Sentry Android Gradle plugin with the autoInstallation feature (enabled by default), make sure to use version 4.+ of the gradle plugin together with version 7.+ of the SDK. If you can't do that for some reason, you can specify sentry version via the plugin config block:

sentry {
  autoInstallation {
    sentryVersion.set("7.0.0")
  }
}

Similarly, if you have a Sentry SDK (e.g. sentry-android-core) dependency on one of your Gradle modules and you're updating it to 7.+, make sure the Gradle plugin is at 4.+ or specify the SDK version as shown in the snippet above.

Breaking Changes

  • Bump min API to 19 (#2883)
  • If you're using sentry-kotlin-extensions, it requires kotlinx-coroutines-core version 1.6.1 or higher now (#2838)
  • Move enableNdk from SentryOptions to SentryAndroidOptions (#2793)
  • Apollo v2 BeforeSpanCallback now allows returning null (#2890)
  • SentryOkHttpUtils was removed from public API as it's been exposed by mistake (#3005)
  • Scope now implements the IScope interface, therefore some methods like ScopeCallback.run accept IScope now (#3066)
  • Cleanup startTransaction overloads (#2964)
    • We have reduced the number of overloads by allowing to pass in a TransactionOptions object instead of having separate parameters for certain options
    • TransactionOptions has defaults set and can be customized, for example:
// old
val transaction = Sentry.startTransaction("name", "op", bindToScope = true)
// new
val transaction = Sentry.startTransaction("name", "op", TransactionOptions().apply { isBindToScope = true })

Behavioural Changes

  • Android only: Sentry.getSpan() returns the root span/transaction instead of the latest span (#2855)
  • Capture failed HTTP and GraphQL (Apollo) requests by default (#2794)
    • This can increase your event consumption and may affect your quota, because we will report failed network requests as Sentry events by default, if you're using the sentry-android-okhttp or sentry-apollo-3 integrations. You can customize what errors you want/don't want to have reported for OkHttp and Apollo3 respectively.
  • Measure AppStart time till First Draw instead of onResume (#2851)
  • Automatic user interaction tracking: every click now starts a new automatic transaction (#2891)
    • Previously performing a click on the same UI widget twice would keep the existing transaction running, the new behavior now better aligns with other SDKs
  • Add deadline timeout for automatic transactions (#2865)
    • This affects all automatically generated transactions on Android (UI, clicks), the default timeout is 30s, meaning the automatic transaction will be force-finished with status deadline_exceeded when reaching the deadline
  • Set ip_address to {{auto}} by default, even if sendDefaultPII is disabled (#2860)
    • Instead use the "Prevent Storing of IP Addresses" option in the "Security & Privacy" project settings on sentry.io
  • Raw logback message and parameters are now guarded by sendDefaultPii if an encoder has been configured (#2976)
  • The maxSpans setting (defaults to 1000) is enforced for nested child spans which means a single transaction can have maxSpans number of children (nested or not) at most (#3065)
  • The ScopeCallback in withScope is now always executed (#3066)

Deprecations

  • sentry-android-okhttp was deprecated in favour of the new sentry-okhttp module. Make sure to replace io.sentry.android.okhttp package name with io.sentry.okhttp before the next major, where the classes will be removed (#3005)

Other Changes

Features

  • Observe network state to upload any unsent envelopes (#2910)
  • Add sentry-okhttp module to support instrumenting OkHttp in non-Android projects (#3005)
  • Do not filter out Sentry SDK frames in case of uncaught exceptions (#3021)
  • Do not try to send and drop cached envelopes when rate-limiting is active (#2937)

Fixes

  • Use getMyMemoryState() instead of getRunningAppProcesses() to retrieve process importance (#3004)
    • This should prevent some app stores from flagging apps as violating their privacy
  • Reduce flush timeout to 4s on Android to avoid ANRs (#2858)
  • Reduce timeout of AsyncHttpTransport to avoid ANR (#2879)
  • Do not overwrite UI transaction status if set by the user (#2852)
  • Capture unfinished transaction on Scope with status aborted in case a crash happens (#2938)
    • This will fix the link between transactions and corresponding crashes, you'll be able to see them in a single trace
  • Fix Coroutine Context Propagation using CopyableThreadContextElement (#2838)
  • Fix don't overwrite the span status of unfinished spans (#2859)
  • Migrate from default interface methods to proper implementations in each interface implementor (#2847)
    • This prevents issues when using the SDK on older AGP versions (< 4.x.x)
  • Reduce main thread work on init (#3036)
  • Move Integrations registration to background on init (#3043)
  • Fix SentryOkHttpInterceptor.BeforeSpanCallback was not finishing span when it was dropped (#2958)

6.34.0

Features

  • Add current activity name to app context (#2999)
  • Add MonitorConfig param to CheckInUtils.withCheckIn (#3038)
    • This makes it easier to automatically create or update (upsert) monitors.
  • (Internal) Extract Android Profiler and Measurements for Hybrid SDKs (#3016)
  • (Internal) Remove SentryOptions dependency from AndroidProfiler (#3051)
  • (Internal) Add readBytesFromFile for use in Hybrid SDKs (#3052)
  • (Internal) Add getProguardUuid for use in Hybrid SDKs (#3054)

Fixes

  • Fix SIGSEV, SIGABRT and SIGBUS crashes happening after/around the August Google Play System update, see #2955 for more details (fix provided by Native SDK bump)
  • Ensure DSN uses http/https protocol (#3044)

Dependencies

6.33.2-beta.1

Fixes

  • Fix SIGSEV, SIGABRT and SIGBUS crashes happening after/around the August Google Play System update, see #2955 for more details (fix provided by Native SDK bump)

Dependencies

6.33.1

Fixes

  • Do not register sentrySpringFilter in ServletContext for Spring Boot (#3027)

6.33.0

Features

  • Add thread information to spans (#2998)
  • Use PixelCopy API for capturing screenshots on API level 24+ (#3008)

Fixes

  • Fix crash when HTTP connection error message contains formatting symbols (#3002)
  • Cap max number of stack frames to 100 to not exceed payload size limit (#3009)
    • This will ensure we report errors with a big number of frames such as StackOverflowError
  • Fix user interaction tracking not working for Jetpack Compose 1.5+ (#3010)
  • Make sure to close all Closeable resources (#3000)

6.32.0

Features

  • Make DebugImagesLoader public (#2993)

Fixes

  • Make SystemEventsBroadcastReceiver exported on API 33+ (#2990)
    • This will fix the SystemEventsBreadcrumbsIntegration crashes that you might have encountered on Play Console

6.31.0

Features

  • Improve default debouncing mechanism (#2945)
  • Add CheckInUtils.withCheckIn which abstracts away some of the manual check-ins complexity (#2959)
  • Add @SentryCaptureExceptionParameter annotation which captures exceptions passed into an annotated method (#2764)
    • This can be used to replace Sentry.captureException calls in @ExceptionHandler of a @ControllerAdvice
  • Add ServerWebExchange to Hint for WebFlux as WEBFLUX_EXCEPTION_HANDLER_EXCHANGE (#2977)
  • Allow filtering GraphQL errors (#2967)
    • This list can be set directly when calling the constructor of SentryInstrumentation
    • For Spring Boot it can also be set in application.properties as sentry.graphql.ignored-error-types=SOME_ERROR,ANOTHER_ERROR

Fixes

  • Add OkHttp span auto-close when response body is not read (#2923)
  • Fix json parsing of nullable/empty fields for Hybrid SDKs (#2968)
    • (Internal) Rename nextList to nextListOrNull to actually match what the method does
    • (Hybrid) Check if there's any object in a collection before trying to parse it (which prevents the "Failed to deserilize object in list" log message)
    • (Hybrid) If a date can't be parsed as an ISO timestamp, attempts to parse it as millis silently, without printing a log message
    • (Hybrid) If op is not defined as part of SpanContext, fallback to an empty string, because the filed is optional in the spec
  • Always attach OkHttp errors and Http Client Errors only to call root span (#2961)
  • Fixed crash accessing Choreographer instance (#2970)

Dependencies

6.30.0

Features

  • Add sendModules option for disable sending modules (#2926)
  • Send db.system and db.name in span data for androidx.sqlite spans (#2928)
  • Check-ins (CRONS) support (#2952)
    • Add API for sending check-ins (CRONS) manually (#2935)
    • Support check-ins (CRONS) for Quartz (#2940)
    • @SentryCheckIn annotation and advice config for Spring (#2946)
    • Add option for ignoring certain monitor slugs (#2943)

Fixes

  • Always send memory stats for transactions (#2936)
    • This makes it possible to query transactions by the device.class tag on Sentry
  • Add sentry.enable-aot-compatibility property to SpringBoot Jakarta SentryAutoConfiguration to enable building for GraalVM (#2915)

Dependencies

6.29.0

Features

  • Send db.system and db.name in span data (#2894)
  • Send http.request.method in span data (#2896)
  • Add enablePrettySerializationOutput option for opting out of pretty print (#2871)

6.28.0

Features

  • Add HTTP response code to Spring WebFlux transactions (#2870)
  • Add sampled to Dynamic Sampling Context (#2869)
  • Improve server side GraphQL support for spring-graphql and Nextflix DGS (#2856)
    • If you have already been using SentryDataFetcherExceptionHandler that still works but has been deprecated. Please use SentryGenericDataFetcherExceptionHandler combined with SentryInstrumentation instead for better error reporting.
    • More exceptions and errors caught and reported to Sentry by also looking at the ExecutionResult (more specifically its errors)
    • More details for Sentry events: query, variables and response (where possible)
    • Breadcrumbs for operation (query, mutation, subscription), data fetchers and data loaders (Spring only)
    • Better hub propagation by using GraphQLContext
  • Add autoconfigure modules for Spring Boot called sentry-spring-boot and sentry-spring-boot-jakarta (#2880)
    • The autoconfigure modules sentry-spring-boot and sentry-spring-boot-jakarta have a compileOnly dependency on spring-boot-starter which is needed for our auto installation in sentry-android-gradle-plugin
    • The starter modules sentry-spring-boot-starter and sentry-spring-boot-starter-jakarta now bring spring-boot-starter as a dependency
  • You can now disable Sentry by setting the enabled option to false (#2840)

Fixes

  • Propagate OkHttp status to parent spans (#2872)

6.27.0

Features

  • Add TraceOrigin to Transactions and Spans (#2803)

Fixes

  • Deduplicate events happening in multiple threads simultaneously (e.g. OutOfMemoryError) (#2845)
    • This will improve Crash-Free Session Rate as we no longer will send multiple Session updates with Crashed status, but only the one that is relevant
  • Ensure no Java 8 method reference sugar is used for Android (#2857)
  • Do not send session updates for terminated sessions (#2849)

6.26.0

Features

  • (Internal) Extend APIs for hybrid SDKs (#2814, #2846)

Fixes

  • Fix ANRv2 thread dump parsing for native-only threads (#2839)
  • Derive TracingContext values from event for ANRv2 events (#2839)

6.25.2

Fixes

  • Change Spring Boot, Apollo, Apollo 3, JUL, Logback, Log4j2, OpenFeign, GraphQL and Kotlin coroutines core dependencies to compileOnly (#2837)

6.25.1

Fixes

  • Allow removing integrations in SentryAndroid.init (#2826)
  • Fix concurrent access to frameMetrics listener (#2823)

Dependencies

6.25.0

Features

  • Add manifest AutoInit to integrations list (#2795)
  • Tracing headers (sentry-trace and baggage) are now attached and passed through even if performance is disabled (#2788)

Fixes

  • Set environment from SentryOptions if none persisted in ANRv2 (#2809)
  • Remove code that set tracesSampleRate to 0.0 for Spring Boot if not set (#2800)
    • This used to enable performance but not send any transactions by default.
    • Performance is now disabled by default.
  • Fix slow/frozen frames were not reported with transactions (#2811)

Dependencies

6.24.0

Features

  • Add debouncing mechanism and before-capture callbacks for screenshots and view hierarchies (#2773)
  • Improve ANRv2 implementation (#2792)
    • Add a proguard rule to keep ApplicationNotResponding class from obfuscation
    • Add a new option setReportHistoricalAnrs; when enabled, it will report all of the ANRs from the getHistoricalExitReasons list. By default, the SDK only reports and enriches the latest ANR and only this one counts towards ANR rate. Worth noting that this option is mainly useful when updating the SDK to the version where ANRv2 has been introduced, to report all ANRs happened prior to the SDK update. After that, the SDK will always pick up the latest ANR from the historical exit reasons list on next app restart, so there should be no historical ANRs to report. These ANRs are reported with the HistoricalAppExitInfo mechanism.
    • Add a new option setAttachAnrThreadDump to send ANR thread dump from the system as an attachment. This is only useful as additional information, because the SDK attempts to parse the thread dump into proper threads with stacktraces by default.
    • If ApplicationExitInfo#getTraceInputStream returns null, the SDK no longer reports an ANR event, as these events are not very useful without it.
    • Enhance regex patterns for native stackframes

6.23.0

Features

  • Add profile rate limiting (#2782)
  • Support for automatically capturing Failed GraphQL (Apollo 3) Client errors (#2781)
import com.apollographql.apollo3.ApolloClient
import io.sentry.apollo3.sentryTracing

val apolloClient = ApolloClient.Builder()
    .serverUrl("https://example.com/graphql")
    .sentryTracing(captureFailedRequests = true)    
    .build()

Dependencies

Fixes

6.22.0

Features

  • Add lock attribute to the SentryStackFrame protocol to better highlight offending frames in the UI (#2761)
  • Enrich database spans with blocked main thread info (#2760)
  • Add api_target to Request and data to Response Protocols (#2775)

Fixes

  • No longer use String.join in Baggage as it requires API level 26 (#2778)

6.21.0

Features

  • Introduce new sentry-android-sqlite integration (#2722)
    • This integration replaces the old androidx.sqlite database instrumentation in the Sentry Android Gradle plugin
    • A new capability to manually instrument your androidx.sqlite databases.
      • You can wrap your custom SupportSQLiteOpenHelper instance into SentrySupportSQLiteOpenHelper(myHelper) if you're not using the Sentry Android Gradle plugin and still benefit from performance auto-instrumentation.
  • Add SentryWrapper for Callable and Supplier Interface (#2720)
  • Load sentry-debug-meta.properties (#2734)
    • This enables source context for Java
    • For more information on how to enable source context, please refer to #633

Fixes

  • Finish WebFlux transaction before popping scope (#2724)
  • Use daemon threads for SentryExecutorService (#2747)
    • We started using SentryExecutorService in 6.19.0 which caused the application to hang on shutdown unless Sentry.close() was called. By using daemon threads we no longer block shutdown.
  • Use Base64.NO_WRAP to avoid unexpected char errors in Apollo (#2745)
  • Don't warn R8 on missing ComposeViewHierarchyExporter class (#2743)

6.20.0

Features

  • Add support for Sentry Kotlin Compiler Plugin (#2695)
    • In conjunction with our sentry-kotlin-compiler-plugin we improved Jetpack Compose support for
  • More granular http requests instrumentation with a new SentryOkHttpEventListener (#2659)
    • Create spans for time spent on:
      • Proxy selection
      • DNS resolution
      • HTTPS setup
      • Connection
      • Requesting headers
      • Receiving response
    • You can attach the event listener to your OkHttpClient through client.eventListener(new SentryOkHttpEventListener()).addInterceptor(new SentryOkHttpInterceptor()).build();
    • In case you already have an event listener you can use the SentryOkHttpEventListener as well through client.eventListener(new SentryOkHttpEventListener(myListener)).addInterceptor(new SentryOkHttpInterceptor()).build();
  • Add a new option to disable RootChecker (#2735)

Fixes

  • Base64 encode internal Apollo3 Headers (#2707)
  • Fix SentryTracer crash when scheduling auto-finish of a transaction, but the timer has already been cancelled (#2731)
  • Fix AndroidTransactionProfiler crash when finishing a profile that happened due to race condition (#2731)

6.19.1

Fixes

  • Ensure screenshots and view hierarchies are captured on the main thread (#2712)

6.19.0

Features

  • Add Screenshot and ViewHierarchy to integrations list (#2698)
  • New ANR detection based on ApplicationExitInfo API (#2697)
    • This implementation completely replaces the old one (based on a watchdog) on devices running Android 11 and above:
      • New implementation provides more precise ANR events/ANR rate detection as well as system thread dump information. The new implementation reports ANRs exactly as Google Play Console, without producing false positives or missing important background ANR events.
      • New implementation reports ANR events with a new mechanism mechanism:AppExitInfo.
      • However, despite producing many false positives, the old implementation is capable of better enriching ANR errors (which is not available with the new implementation), for example:
        • Capturing screenshots at the time of ANR event;
        • Capturing transactions and profiling data corresponding to the ANR event;
        • Auxiliary information (such as current memory load) at the time of ANR event.
      • If you would like us to provide support for the old approach working alongside the new one on Android 11 and above (e.g. for raising events for slow code on main thread), consider upvoting this issue.
    • The old watchdog implementation will continue working for older API versions (Android < 11):
      • The old implementation reports ANR events with the existing mechanism mechanism:ANR.
  • Open up TransactionOptions, ITransaction and IHub methods allowing consumers modify start/end timestamp of transactions and spans (#2701)
  • Send source bundle IDs to Sentry to enable source context (#2663)
    • For more information on how to enable source context, please refer to #633

Fixes

  • Android Profiler on calling thread (#2691)
  • Use configureScope instead of withScope in Hub.close(). This ensures that the main scope releases the in-memory data when closing a hub instance. (#2688)
  • Remove null keys/values before creating concurrent hashmap in order to avoid NPE (#2708)
  • Exclude SentryOptions from R8/ProGuard obfuscation (#2699)
    • This fixes AGP 8.+ incompatibility, where full R8 mode is enforced

Dependencies

6.18.1

Fixes

  • Fix crash when Sentry SDK is initialized more than once (#2679)
  • Track a ttfd span per Activity (#2673)

6.18.0

Features

  • Attach Trace Context when an ANR is detected (ANRv1) (#2583)
  • Make log4j2 integration compatible with log4j 3.0 (#2634)
    • Instead of relying on package scanning, we now use an annotation processor to generate Log4j2Plugins.dat
  • Create User and Breadcrumb from map (#2614)
  • Add sent_at to envelope header item (#2638)

Fixes

  • Fix timestamp intervals of PerformanceCollectionData in profiles (#2648)
  • Fix timestamps of PerformanceCollectionData in profiles (#2632)
  • Fix missing propagateMinConstraints flag for SentryTraced (#2637)
  • Fix potential SecurityException thrown by ConnectivityManager on Android 11 (#2653)
  • Fix aar artifacts publishing for Maven (#2641)

Dependencies

  • Bump Kotlin compile version from v1.6.10 to 1.8.0 (#2563)
  • Bump Compose compile version from v1.1.1 to v1.3.0 (#2563)
  • Bump AGP version from v7.3.0 to v7.4.2 (#2574)
  • Bump Gradle from v7.6.0 to v8.0.2 (#2563)
  • Bump Gradle from v8.0.2 to v8.1.0 (#2650)

6.17.0

Features

  • Add name and geo to User (#2556)
  • Add breadcrumbs on network changes (#2608)
  • Add time-to-initial-display and time-to-full-display measurements to Activity transactions (#2611)
  • Read integration list written by sentry gradle plugin from manifest (#2598)
  • Add Logcat adapter (#2620)
  • Provide CPU count/frequency data as device context (#2622)

Fixes

  • Trim time-to-full-display span if reportFullyDisplayed API is never called (#2631)
  • Fix Automatic UI transactions having wrong durations (#2623)
  • Fix wrong default environment in Session (#2610)
  • Pass through unknown sentry baggage keys into SentryEnvelopeHeader (#2618)
  • Fix missing null check when removing lifecycle observer (#2625)

Dependencies

6.16.0

Features

  • Improve versatility of exception resolver component for Spring with more flexible API for consumers. (#2577)
  • Automatic performance instrumentation for WebFlux (#2597)
    • You can enable it by adding sentry.enable-tracing=true to your application.properties
  • The Spring Boot integration can now be configured to add the SentryAppender to specific loggers instead of the ROOT logger (#2173)
    • You can specify the loggers using "sentry.logging.loggers[0]=foo.bar and "sentry.logging.loggers[1]=baz in your application.properties
  • Add capabilities to track Jetpack Compose composition/rendering time (#2507)
  • Adapt span op and description for graphql to fit spec (#2607)

Fixes

  • Fix timestamps of slow and frozen frames for profiles (#2584)
  • Deprecate reportFullDisplayed in favor of reportFullyDisplayed (#2585)
  • Add mechanism for logging integrations and update spring mechanism types (#2595)
    • NOTE: If you're using these mechanism types (HandlerExceptionResolver, SentryWebExceptionHandler) in your dashboards please update them to use the new types.
  • Filter out session cookies sent by Spring and Spring Boot integrations (#2593)
    • We filter out some common cookies like JSESSIONID
    • We also read the value from server.servlet.session.cookie.name and filter it out
  • No longer send event / transaction to Sentry if beforeSend / beforeSendTransaction throws (#2591)
  • Add version to sentryClientName used in auth header (#2596)
  • Keep integration names from being obfuscated (#2599)
  • Change log level from INFO to WARN for error message indicating a failed Log4j2 Sentry.init (#2606)
    • The log message was often not visible as our docs suggest a minimum log level of WARN
  • Fix session tracking on Android (#2609)
    • Incorrect number of session has been sent. In addition, some of the sessions were not properly ended, messing up Session Health Metrics.

Dependencies

  • Bump opentelemetry-sdk to 1.23.1 and opentelemetry-javaagent to 1.23.0 (#2590)
  • Bump Native SDK from v0.5.4 to v0.6.0 (#2545)

6.15.0

Features

  • Adjust time-to-full-display span if reportFullDisplayed is called too early (#2550)
  • Add enableTracing option (#2530)
    • This change is backwards compatible. The default is null meaning existing behaviour remains unchanged (setting either tracesSampleRate or tracesSampler enables performance).
    • If set to true, performance is enabled, even if no tracesSampleRate or tracesSampler have been configured.
    • If set to false performance is disabled, regardless of tracesSampleRate and tracesSampler options.
  • Detect dependencies by listing MANIFEST.MF files at runtime (#2538)
  • Report integrations in use, report packages in use more consistently (#2179)
  • Implement ThreadLocalAccessor for propagating Sentry hub with reactor / WebFlux (#2570)

Fixes

  • Leave inApp flag for stack frames undecided in SDK if unsure and let ingestion decide instead (#2547)
  • Allow 0.0 error sample rate (#2573)
  • Fix memory leak in WebFlux related to an ever growing stack (#2580)
  • Use the same hub in WebFlux exception handler as we do in WebFilter (#2566)
  • Switch upstream Jetpack Compose dependencies to compileOnly in sentry-compose-android (#2578)
    • NOTE: If you're using Compose Navigation/User Interaction integrations, make sure to have the following dependencies on the classpath as we do not bring them in transitively anymore:
      • androidx.navigation:navigation-compose:
      • androidx.compose.runtime:runtime:
      • androidx.compose.ui:ui:

6.14.0

Features

  • Add time-to-full-display span to Activity auto-instrumentation (#2432)
  • Add main flag to threads and in_foreground flag for app contexts (#2516)

Fixes

  • Ignore Shutdown in progress when closing ShutdownHookIntegration (#2521)
  • Fix app start span end-time is wrong if SDK init is deferred (#2519)
  • Fix invalid session creation when app is launched in background (#2543)

6.13.1

Fixes

  • Fix transaction performance collector oom (#2505)
  • Remove authority from URLs sent to Sentry (#2366)
  • Fix sentry-bom containing incorrect artifacts (#2504)

Dependencies

6.13.0

Features

  • Send cpu usage percentage in profile payload (#2469)
  • Send transaction memory stats in profile payload (#2447)
  • Add cpu usage collection (#2462)
  • Improve ANR implementation: (#2475)
    • Add abnormal_mechanism to sessions for ANR rate calculation
    • Always attach thread dump to ANR events
    • Distinguish between foreground and background ANRs
  • Improve possible date precision to 10 μs (#2451)

Fixes

  • Fix performance collector setup called in main thread (#2499)
  • Expand guard against CVE-2018-9492 "Privilege Escalation via Content Provider" (#2482)
  • Prevent OOM by disabling TransactionPerformanceCollector for now (#2498)

6.12.1

Fixes

  • Create timer in TransactionPerformanceCollector lazily (#2478)

6.12.0

Features

  • Attach View Hierarchy to the errored/crashed events (#2440)
  • Collect memory usage in transactions (#2445)
  • Add traceOptionsRequests option to disable tracing of OPTIONS requests (#2453)
  • Extend list of HTTP headers considered sensitive (#2455)

Fixes

  • Use a single TransactionPerfomanceCollector (#2464)
  • Don't override sdk name with Timber (#2450)
  • Set transactionNameSource to CUSTOM when setting transaction name (#2405)
  • Guard against CVE-2018-9492 "Privilege Escalation via Content Provider" (#2466)

6.11.0

Features

  • Disable Android concurrent profiling (#2434)
  • Add logging for OpenTelemetry integration (#2425)
  • Auto add OpenTelemetryLinkErrorEventProcessor for Spring Boot (#2429)

Fixes

  • Use minSdk compatible Objects class (#2436)
  • Prevent R8 from warning on missing classes, as we check for their presence at runtime (#2439)

Dependencies

6.10.0

Features

  • Add time-to-initial-display span to Activity transactions (#2369)
  • Start a session after init if AutoSessionTracking is enabled (#2356)
  • Provide automatic breadcrumbs and transactions for click/scroll events for Compose (#2390)
  • Add blocked_main_thread and call_stack to File I/O spans to detect performance issues (#2382)

Dependencies

6.9.2

Fixes

  • Updated ProfileMeasurementValue types (#2412)
  • Clear window reference only on activity stop in profileMeasurements collector (#2407)
  • No longer disable OpenTelemetry exporters in default Java Agent config (#2408)
  • Fix ClassNotFoundException for io.sentry.spring.SentrySpringServletContainerInitializer in sentry-spring-jakarta (#2411)
  • Fix sentry-samples-spring-jakarta (#2411)

Features

  • Add SENTRY_AUTO_INIT environment variable to control OpenTelemetry Agent init (#2410)
  • Add OpenTelemetryLinkErrorEventProcessor for linking errors to traces created via OpenTelemetry (#2418)

Dependencies

  • Bump OpenTelemetry to 1.20.1 and OpenTelemetry Java Agent to 1.20.2 (#2420)

6.9.1

Fixes

  • OpenTelemetry modules were missing in 6.9.0 so we released the same code again as 6.9.1 including OpenTelemetry modules

6.9.0

Fixes

  • Use canonicalName in Fragment Integration for better de-obfuscation (#2379)
  • Fix Timber and Fragment integrations auto-installation for obfuscated builds (#2379)
  • Don't attach screenshots to events from Hybrid SDKs (#2360)
  • Ensure Hints do not cause memory leaks (#2387)
  • Do not attach empty sentry-trace and baggage headers (#2385)

Features

  • Add beforeSendTransaction which allows users to filter and change transactions (#2388)
  • Add experimental support for OpenTelemetry (README)(#2344)

Dependencies

  • Update Spring Boot Jakarta to Spring Boot 3.0.0 (#2389)
  • Bump Spring Boot to 2.7.5 (#2383)

6.8.0

Features

  • Add FrameMetrics to Android profiling data (#2342)

Fixes

  • Remove profiler main thread io (#2348)
  • Fix ensure all options are processed before integrations are loaded (#2377)

6.7.1

Fixes

  • Fix Gpu.vendorId should be a String (#2343)
  • Don't set device name on Android if sendDefaultPii is disabled (#2354)
  • Fix corrupted UUID on Motorola devices (#2363)
  • Fix ANR on dropped uncaught exception events (#2368)

Features

  • Update Spring Boot Jakarta to Spring Boot 3.0.0-RC2 (#2347)

6.7.0

Fixes

  • Use correct set-cookie for the HTTP Client response object (#2326)
  • Fix NoSuchElementException in CircularFifoQueue when cloning a Scope (#2328)

Features

  • Customizable fragment lifecycle breadcrumbs (#2299)
  • Provide hook for Jetpack Compose navigation instrumentation (#2320)
  • Populate event.modules with dependencies metadata (#2324)
  • Support Spring 6 and Spring Boot 3 (#2289)

Dependencies

6.6.0

Fixes

  • Ensure potential callback exceptions are caught #2123 (#2291)
  • Remove verbose FrameMetricsAggregator failure logging (#2293)
  • Ignore broken regex for tracePropagationTarget (#2288)
  • No longer serialize static fields; use toString as fallback (#2309)
  • Fix SentryFileWriter/SentryFileOutputStream append overwrites file contents (#2304)
  • Respect incoming parent sampled decision when continuing a trace (#2311)

Features

  • Profile envelopes are sent directly from profiler (#2298)
  • Add support for using Encoder with logback.SentryAppender (#2246)
  • Report Startup Crashes (#2277)
  • HTTP Client errors for OkHttp (#2287)
  • Add option to enable or disable Frame Tracking (#2314)

Dependencies

6.5.0

Fixes

  • Improve public facing API for creating Baggage from header (#2284)

6.5.0-beta.3

Features

  • Provide API for attaching custom measurements to transactions (#2260)
  • Bump spring to 2.7.4 (#2279)

6.5.0-beta.2

Features

  • Make user segment a top level property (#2257)
  • Replace user other with data (#2258)
  • isTraceSampling is now on by default. tracingOrigins has been replaced by tracePropagationTargets (#2255)

6.5.0-beta.1

Features

  • Server-Side Dynamic Sampling Context support (#2226)

6.4.4

Fixes

  • Fix ConcurrentModificationException due to FrameMetricsAggregator manipulation (#2282)

6.4.3

  • Fix slow and frozen frames tracking (#2271)

6.4.2

Fixes

  • Fixed AbstractMethodError when getting Lifecycle (#2228)
  • Missing unit fields for Android measurements (#2204)
  • Avoid sending empty profiles (#2232)
  • Fix file descriptor leak in FileIO instrumentation (#2248)

6.4.1

Fixes

  • Fix memory leak caused by throwableToSpan (#2227)

6.4.0

Fixes

  • make profiling rate defaults to 101 hz (#2211)
  • SentryOptions.setProfilingTracesIntervalMillis has been deprecated
  • Added cpu architecture and default environment in profiles envelope (#2207)
  • SentryOptions.setProfilingEnabled has been deprecated in favor of setProfilesSampleRate
  • Use toString for enum serialization (#2220)

Features

  • Concurrent profiling 3 - added truncation reason (#2247)
  • Concurrent profiling 2 - added list of transactions (#2218)
  • Concurrent profiling 1 - added envelope payload data format (#2216)
  • Send source for transactions (#2180)
  • Add profilesSampleRate and profileSampler options for Android sdk (#2184)
  • Add baggage header to RestTemplate (#2206)
  • Bump Native SDK from v0.4.18 to v0.5.0 (#2199)
  • Bump Gradle from v7.5.0 to v7.5.1 (#2212)

6.3.1

Fixes

  • Prevent NPE by checking SentryTracer.timer for null again inside synchronized (#2200)
  • Weakly reference Activity for transaction finished callback (#2203)
  • attach-screenshot set on Manual init. didn't work (#2186)
  • Remove extra space from spring.factories causing issues in old versions of Spring Boot (#2181)

Features

6.3.0

Features

  • Switch upstream dependencies to compileOnly in integrations (#2175)

Fixes

  • Lazily retrieve HostnameCache in MainEventProcessor (#2170)

6.2.1

Fixes

  • Only send userid in Dynamic Sampling Context if sendDefaultPii is true (#2147)
  • Remove userId from baggage due to PII (#2157)

Features

  • Add integration for Apollo-Kotlin 3 (#2109)
  • New package sentry-android-navigation for AndroidX Navigation support (#2136)
  • New package sentry-compose for Jetpack Compose support (Navigation) (#2136)
  • Add sample rate to baggage as well as trace in envelope header and flatten user (#2135)

Breaking Changes:

  • The boolean parameter samplingDecision in the TransactionContext constructor has been replaced with a TracesSamplingDecision object. Feel free to ignore the @ApiStatus.Internal in this case.

6.1.4

Fixes

  • Filter out app starts with more than 60s (#2127)

6.1.3

Fixes

  • Fix thread leak due to Timer being created and never cancelled (#2131)

6.1.2

Fixes

  • Swallow error when reading ActivityManager#getProcessesInErrorState instead of crashing (#2114)
  • Use charset string directly as StandardCharsets is not available on earlier Android versions (#2111)

6.1.1

Features

  • Replace tracestate header with baggage header (#2078)
  • Allow opting out of device info collection that requires Inter-Process Communication (IPC) (#2100)

6.1.0

Features

  • Implement local scope by adding overloads to the capture methods that accept a ScopeCallback (#2084)
  • SentryOptions#merge is now public and can be used to load ExternalOptions (#2088)

Fixes

  • Fix proguard rules to work R8 issue around on AGP 7.3.0-betaX and 7.4.0-alphaX (#2094)
  • Fix GraalVM Native Image compatibility (#2172)

6.0.0

Sentry Self-hosted Compatibility

  • Starting with version 6.0.0 of the sentry package, Sentry's self hosted version >= v21.9.0 is required or you have to manually disable sending client reports via the sendClientReports option. This only applies to self-hosted Sentry. If you are using sentry.io, no action is needed.

Features

  • Allow optimization and obfuscation of the SDK by reducing proguard rules (#2031)
  • Relax TransactionNameProvider (#1861)
  • Use float instead of Date for protocol types for higher precision (#1737)
  • Allow setting SDK info (name & version) in manifest (#2016)
  • Allow setting native Android SDK name during build (#2035)
  • Include application permissions in Android events (#2018)
  • Automatically create transactions for UI events (#1975)
  • Hints are now used via a Hint object and passed into beforeSend and EventProcessor as @NotNull Hint object (#2045)
  • Attachments can be manipulated via hint (#2046)
  • Add sentry-servlet-jakarta module (#1987)
  • Add client reports (#1982)
  • Screenshot is taken when there is an error (#1967)
  • Add Android profiling traces (#1897) (#1959) and its tests (#1949)
  • Enable enableScopeSync by default for Android (#1928)
  • Feat: Vendor JSON (#1554)
    • Introduce JsonSerializable and JsonDeserializer interfaces for manual json serialization/deserialization.
    • Introduce JsonUnknwon interface to preserve unknown properties when deserializing/serializing SDK classes.
    • When passing custom objects, for example in Contexts, these are supported for serialization:
      • JsonSerializable
      • Map, Collection, Array, String and all primitive types.
      • Objects with the help of refection.
        • Map, Collection, Array, String and all primitive types.
        • Call toString() on objects that have a cyclic reference to a ancestor object.
        • Call toString() where object graphs exceed max depth.
    • Remove gson dependency.
    • Remove IUnknownPropertiesConsumer
  • Pass MDC tags as Sentry tags (#1954)

Fixes

  • Calling Sentry.init and specifying contextTags now has an effect on the Logback SentryAppender (#2052)
  • Calling Sentry.init and specifying contextTags now has an effect on the Log4j SentryAppender (#2054)
  • Calling Sentry.init and specifying contextTags now has an effect on the jul SentryAppender (#2057)
  • Update Spring Boot dependency to 2.6.8 and fix the CVE-2022-22970 (#2068)
  • Sentry can now self heal after a Thread had its currentHub set to a NoOpHub (#2076)
  • No longer close OutputStream that is passed into JsonSerializer (#2029)
  • Fix setting context tags on events captured by Spring (#2060)
  • Isolate cached events with hashed DSN subfolder (#2038)
  • SentryThread.current flag will not be overridden by DefaultAndroidEventProcessor if already set (#2050)
  • Fix serialization of Long inside of Request.data (#2051)
  • Update sentry-native to 0.4.17 (#2033)
  • Update Gradle to 7.4.2 and AGP to 7.2 (#2042)
  • Change order of event filtering mechanisms (#2001)
  • Only send session update for dropped events if state changed (#2002)
  • Android profiling initializes on first profile start (#2009)
  • Profiling rate decreased from 300hz to 100hz (#1997)
  • Allow disabling sending of client reports via Android Manifest and external options (#2007)
  • Ref: Upgrade Spring Boot dependency to 2.5.13 (#2011)
  • Ref: Make options.printUncaughtStackTrace primitive type (#1995)
  • Ref: Remove not needed interface abstractions on Android (#1953)
  • Ref: Make hints Map<String, Object> instead of only Object (#1929)
  • Ref: Simplify DateUtils with ISO8601Utils (#1837)
  • Ref: Remove deprecated and scheduled fields (#1875)
  • Ref: Add shutdownTimeoutMillis in favor of shutdownTimeout (#1873)
  • Ref: Remove Attachment ContentType since the Server infers it (#1874)
  • Ref: Bind external properties to a dedicated class. (#1750)
  • Ref: Debug log serializable objects (#1795)
  • Ref: catch Throwable instead of Exception to suppress internal SDK errors (#1812)
  • SentryOptions can merge properties from ExternalOptions instead of another instance of SentryOptions
  • Following boolean properties from SentryOptions that allowed null values are now not nullable - debug, enableUncaughtExceptionHandler, enableDeduplication
  • SentryOptions cannot be created anymore using PropertiesProvider with SentryOptions#from method. Use ExternalOptions#from instead and merge created object with SentryOptions#merge
  • Bump: Kotlin to 1.5 and compatibility to 1.4 for sentry-android-timber (#1815)

5.7.4

Fixes

  • Change order of event filtering mechanisms and only send session update for dropped events if session state changed (#2028)

5.7.3

Fixes

  • Sentry Timber integration throws an exception when using args (#1986)

5.7.2

Fixes

  • Bring back support for Timber.tag (#1974)

5.7.1

Fixes

  • Sentry Timber integration does not submit msg.formatted breadcrumbs (#1957)
  • ANR WatchDog won't crash on SecurityException (#1962)

5.7.0

Features

  • Automatically enable Timber and Fragment integrations if they are present on the classpath (#1936)

5.6.3

Fixes

  • If transaction or span is finished, do not allow to mutate (#1940)
  • Keep used AndroidX classes from obfuscation (Fixes UI breadcrumbs and Slow/Frozen frames) (#1942)

5.6.2

Fixes

  • Ref: Make ActivityFramesTracker public to be used by Hybrid SDKs (#1931)
  • Bump: AGP to 7.1.2 (#1930)
  • NPE while adding "response_body_size" breadcrumb, when response body length is unknown (#1908)
  • Do not include stacktrace frames into Timber message (#1898)
  • Potential memory leaks (#1909)

Breaking changes: Timber.tag is no longer supported by our Timber integration and will not appear on Sentry for error events. Please vote on this issue, if you'd like us to provide support for that.

5.6.2-beta.3

Fixes

  • Ref: Make ActivityFramesTracker public to be used by Hybrid SDKs (#1931)
  • Bump: AGP to 7.1.2 (#1930)

5.6.2-beta.2

Fixes

  • NPE while adding "response_body_size" breadcrumb, when response body length is unknown (#1908)

5.6.2-beta.1

Fixes

  • Do not include stacktrace frames into Timber message (#1898)
  • Potential memory leaks (#1909)

Breaking changes: Timber.tag is no longer supported by our Timber integration and will not appear on Sentry for error events. Please vote on this issue, if you'd like us to provide support for that.

5.6.1

Features

  • Add options.printUncaughtStackTrace to print uncaught exceptions (#1890)

Fixes

  • NPE while adding "response_body_size" breadcrumb, when response body is null (#1884)
  • Bump: AGP to 7.1.0 (#1892)

5.6.0

Features

  • Add breadcrumbs support for UI events (automatically captured) (#1876)

Fixes

  • Change scope of servlet-api to compileOnly (#1880)

5.5.3

Fixes

  • Do not create SentryExceptionResolver bean when Spring MVC is not on the classpath (#1865)

5.5.2

Fixes

  • Detect App Cold start correctly for Hybrid SDKs (#1855)
  • Bump: log4j to 2.17.0 (#1852)
  • Bump: logback to 1.2.9 (#1853)

5.5.1

Fixes

  • Bump: log4j to 2.16.0 (#1845)
  • Make App start cold/warm visible to Hybrid SDKs (#1848)

5.5.0

Features

  • Add locale to device context and deprecate language (#1832)
  • Add SentryFileInputStream and SentryFileOutputStream for File I/O performance instrumentation (#1826)
  • Add SentryFileReader and SentryFileWriter for File I/O instrumentation (#1843)

Fixes

  • Bump: log4j to 2.15.0 (#1839)
  • Ref: Rename Fragment span operation from ui.fragment.load to ui.load (#1824)
  • Ref: change java.util.Random to java.security.SecureRandom for possible security reasons (#1831)

5.4.3

Fixes

  • Only report App start measurement for full launch on Android (#1821)

5.4.2

Fixes

  • Ref: catch Throwable instead of Exception to suppress internal SDK errors (#1812)

5.4.1

Features

  • Refactor OkHttp and Apollo to Kotlin functional interfaces (#1797)
  • Add secondary constructor to SentryInstrumentation (#1804)

Fixes

  • Do not start fragment span if not added to the Activity (#1813)

5.4.0

Features

  • Add graphql-java instrumentation (#1777)

Fixes

  • Do not crash when event processors throw a lower level Throwable class (#1800)
  • ActivityFramesTracker does not throw if Activity has no observers (#1799)

5.3.0

Features

  • Add datasource tracing with P6Spy (#1784)

Fixes

  • ActivityFramesTracker does not throw if Activity has not been added (#1782)
  • PerformanceAndroidEventProcessor uses up to date isTracingEnabled set on Configuration callback (#1786)

5.2.4

Fixes

  • Window.FEATURE_NO_TITLE does not work when using activity traces (#1769)
  • unregister UncaughtExceptionHandler on close (#1770)

5.2.3

Fixes

  • Make ActivityFramesTracker operations thread-safe (#1762)
  • Clone Scope Contexts (#1763)
  • Bump: AGP to 7.0.3 (#1765)

5.2.2

Fixes

  • Close HostnameCache#executorService on SentryClient#close (#1757)

5.2.1

Features

  • Add isCrashedLastRun support (#1739)
  • Attach Java vendor and version to events and transactions (#1703)

Fixes

  • Handle exception if Context.registerReceiver throws (#1747)

5.2.0

Features

  • Allow setting proguard via Options and/or external resources (#1728)
  • Add breadcrumbs for the Apollo integration (#1726)

Fixes

  • Don't set lastEventId for transactions (#1727)
  • ActivityLifecycleIntegration#appStartSpan memory leak (#1732)

5.2.0-beta.3

Features

  • Add "data" to spans (#1717)

Fixes

  • Check at runtime if AndroidX.Core is available (#1718)
  • Should not capture unfinished transaction (#1719)

5.2.0-beta.2

Fixes

  • Bump AGP to 7.0.2 (#1650)
  • Drop spans in BeforeSpanCallback. (#1713)

5.2.0-beta.1

Features

  • Add tracestate HTTP header support (#1683)
  • Add option to filter which origins receive tracing headers (#1698)
  • Include unfinished spans in transaction (#1699)
  • Add static helpers for creating breadcrumbs (#1702)
  • Performance support for Android Apollo (#1705)

Fixes

  • Move tags from transaction.contexts.trace.tags to transaction.tags (#1700)

Breaking changes:

  • Updated proguard keep rule for enums, which affects consumer application code (#1694)

5.1.2

Fixes

  • Servlet 3.1 compatibility issue (#1681)
  • Do not drop Contexts key if Collection, Array or Char (#1680)

5.1.1

Features

  • Add support for async methods in Spring MVC (#1652)
  • Add secondary constructor taking IHub to SentryOkHttpInterceptor (#1657)
  • Merge external map properties (#1656)

Fixes

  • Remove onActivityPreCreated call in favor of onActivityCreated (#1661)
  • Do not crash if SENSOR_SERVICE throws (#1655)
  • Make sure scope is popped when processing request results in exception (#1665)

5.1.0

Features

  • Spring WebClient integration (#1621)
  • OpenFeign integration (#1632)
  • Add more convenient way to pass BeforeSpanCallback in OpenFeign integration (#1637)

Fixes

  • Bump: sentry-native to 0.4.12 (#1651)

5.1.0-beta.9

  • No documented changes.

5.1.0-beta.8

Features

  • Generate Sentry BOM (#1486)

5.1.0-beta.7

Features

  • Slow/Frozen frames metrics (#1609)

5.1.0-beta.6

Features

  • Add request body extraction for Spring MVC integration (#1595)

Fixes

  • set min sdk version of sentry-android-fragment to API 14 (#1608)
  • Ser/Deser of the UserFeedback from cached envelope (#1611)

5.1.0-beta.5

Fixes

  • Make SentryAppender non-final for Log4j2 and Logback (#1603)
  • Do not throw IAE when tracing header contain invalid trace id (#1605)

5.1.0-beta.4

Fixes

  • Update sentry-native to 0.4.11 (#1591)

5.1.0-beta.3

Features

  • Spring Webflux integration (#1529)

5.1.0-beta.2

Features

  • Support transaction waiting for children to finish. (#1535)
  • Capture logged marker in log4j2 and logback appenders (#1551)
  • Allow clearing of attachments in the scope (#1562)
  • Set mechanism type in SentryExceptionResolver (#1556)
  • Perf. for fragments (#1528)

Fixes

  • Handling missing Spring Security on classpath on Java 8 (#1552)
  • Use a different method to get strings from JNI, and avoid excessive Stack Space usage. (#1214)
  • Add data field to SentrySpan (#1555)
  • Clock drift issue when calling DateUtils#getDateTimeWithMillisPrecision (#1557)
  • Prefer snake case for HTTP integration data keys (#1559)
  • Assign lastEventId only if event was queued for submission (#1565)

5.1.0-beta.1

Features

  • Measure app start time (#1487)
  • Automatic breadcrumbs logging for fragment lifecycle (#1522)

5.0.1

Fixes

  • Sources and Javadoc artifacts were mixed up (#1515)

5.0.0

This release brings many improvements but also new features:

  • OkHttp Interceptor for Android (#1330)
  • GraalVM Native Image Compatibility (#1329)
  • Add option to ignore exceptions by type (#1352)
  • Enrich transactions with device contexts (#1430) (#1469)
  • Better interoperability with Kotlin null-safety (#1439) and (#1462)
  • Add coroutines support (#1479)
  • OkHttp callback for Customising the Span (#1478)
  • Add breadcrumb in Spring RestTemplate integration (#1481)

Breaking changes:

Other fixes:

  • Fix: Add attachmentType to envelope ser/deser. (#1504)

Thank you:

  • @maciejwalkowiak for coding most of it.

5.0.0-beta.7

Fixes

  • Ref: Deprecate SentryBaseEvent#getOriginThrowable and add SentryBaseEvent#getThrowableMechanism (#1502)
  • Graceful Shutdown flushes event instead of Closing SDK (#1500)
  • Do not append threads that come from the EnvelopeFileObserver (#1501)
  • Ref: Deprecate cacheDirSize and add maxCacheItems (#1499)
  • Append all threads if Hint is Cached but attachThreads is enabled (#1503)

5.0.0-beta.6

Features

  • Add secondary constructor to SentryOkHttpInterceptor (#1491)
  • Add option to enable debug mode in Log4j2 integration (#1492)

Fixes

  • Ref: Replace clone() with copy constructor (#1496)

5.0.0-beta.5

Features

  • OkHttp callback for Customising the Span (#1478)
  • Add breadcrumb in Spring RestTemplate integration (#1481)
  • Add coroutines support (#1479)

Fixes

5.0.0-beta.4

Fixes

  • Enrich Transactions with Context Data (#1469)
  • Bump: Apache HttpClient to 5.0.4 (#1476)

5.0.0-beta.3

Fixes

  • Handling immutable collections on SentryEvent and protocol objects (#1468)
  • Associate event with transaction when thrown exception is not a direct cause (#1463)
  • Ref: nullability annotations to Sentry module (#1439) and (#1462)
  • NPE when adding Context Data with null values for log4j2 (#1465)

5.0.0-beta.2

Fixes

  • sentry-android-timber package sets sentry.java.android.timber as SDK name (#1456)
  • When AppLifecycleIntegration is closed, it should remove observer using UI thread (#1459)
  • Bump: AGP to 4.2.0 (#1460)

Breaking Changes:

  • Remove: Settings.Secure.ANDROID_ID in favor of generated installationId (#1455)
  • Rename: enableSessionTracking to enableAutoSessionTracking (#1457)

5.0.0-beta.1

Fixes

  • Ref: Refactor converting HttpServletRequest to Sentry Request in Spring integration (#1387)
  • Bump: sentry-native to 0.4.9 (#1431)
  • Activity tracing auto instrumentation for Android API < 29 (#1402)
  • use connection and read timeouts in ApacheHttpClient based transport (#1397)
  • set correct transaction status for unhandled exceptions in SentryTracingFilter (#1406)
  • handle network errors in SentrySpanClientHttpRequestInterceptor (#1407)
  • set scope on transaction (#1409)
  • set status and associate events with transactions (#1426)
  • Do not set free memory and is low memory fields when it's a NDK hard crash (#1399)
  • Apply user from the scope to transaction (#1424)
  • Pass maxBreadcrumbs config. to sentry-native (#1425)
  • Run event processors and enrich transactions with contexts (#1430)
  • Set Span status for OkHttp integration (#1447)
  • Set user on transaction in Spring & Spring Boot integrations (#1443)

4.4.0-alpha.2

Features

  • Add option to ignore exceptions by type (#1352)
  • Sentry closes Android NDK and ShutdownHook integrations (#1358)
  • Allow inheritance of SentryHandler class in sentry-jul package(#1367)
  • Make NoOpHub public (#1379)
  • Configure max spans per transaction (#1394)

Fixes

  • Bump: Upgrade Apache HttpComponents Core to 5.0.3 (#1375)
  • NPE when MDC contains null values (sentry-logback) (#1364)
  • Avoid NPE when MDC contains null values (sentry-jul) (#1385)
  • Accept only non null value maps (#1368)
  • Do not bind transactions to scope by default. (#1376)
  • Hub thread safety (#1388)
  • SentryTransactionAdvice should operate on the new scope (#1389)

4.4.0-alpha.1

Features

  • Add an overload for startTransaction that sets the created transaction to the Scope (#1313)
  • Set SDK version on Transactions (#1307)
  • GraalVM Native Image Compatibility (#1329)
  • Add OkHttp client application interceptor (#1330)

Fixes

  • Bump: sentry-native to 0.4.8
  • Ref: Separate user facing and protocol classes in the Performance feature (#1304)
  • Use logger set on SentryOptions in GsonSerializer (#1308)
  • Use the bindToScope correctly
  • Allow 0.0 to be set on tracesSampleRate (#1328)
  • set "java" platform to transactions (#1332)
  • Allow disabling tracing through SentryOptions (#1337)

4.3.0

Features

  • Activity tracing auto instrumentation

Fixes

  • Aetting in-app-includes from external properties (#1291)
  • Initialize Sentry in Logback appender when DSN is not set in XML config (#1296)
  • JUL integration SDK name (#1293)

4.2.0

Features

  • Improve EventProcessor nullability annotations (#1229).
  • Add ability to flush events synchronously.
  • Support @SentrySpan and @SentryTransaction on classes and interfaces. (#1243)
  • Do not serialize empty collections and maps (#1245)
  • Integration interface better compatibility with Kotlin null-safety
  • Simplify Sentry configuration in Spring integration (#1259)
  • Simplify configuring Logback integration when environment variable with the DSN is not set (#1271)
  • Add Request to the Scope. #1270)
  • Optimize SentryTracingFilter when hub is disabled.

Fixes

  • Bump: sentry-native to 0.4.7
  • Optimize DuplicateEventDetectionEventProcessor performance (#1247).
  • Prefix sdk.package names with io.sentry (#1249)
  • Remove experimental annotation for Attachment (#1257)
  • Mark stacktrace as snapshot if captured at arbitrary moment (#1231)
  • Disable Gson HTML escaping
  • Make the ANR Atomic flags immutable
  • Prevent NoOpHub from creating heavy SentryOptions objects (#1272)
  • SentryTransaction#getStatus NPE (#1273)
  • Discard unfinished Spans before sending them over to Sentry (#1279)
  • Interrupt the thread in QueuedThreadPoolExecutor (#1276)
  • SentryTransaction#finish should not clear another transaction from the scope (#1278)

Breaking Changes:

  • Enchancement: SentryExceptionResolver should not send handled errors by default (#1248).
  • Ref: Simplify RestTemplate instrumentation (#1246)
  • Enchancement: Add overloads for startTransaction taking op and description (#1244)

4.1.0

Features

  • Improve Kotlin compatibility for SdkVersion (#1213)
  • Support logging via JUL (#1211)

Fixes

  • Returning Sentry trace header from Span (#1217)
  • Remove misleading error logs (#1222)

4.0.0

This release brings the Sentry Performance feature to Java SDK, Spring, Spring Boot, and Android integrations. Read more in the reference documentation:

Other improvements:

Core:

  • Improved loading external configuration:
    • Load sentry.properties from the application's current working directory (#1046)
    • Resolve in-app-includes, in-app-excludes, tags, debug, uncaught.handler.enabled parameters from the external configuration
  • Set global tags on SentryOptions and load them from external configuration (#1066)
  • Add support for attachments (#1082)
  • Resolve servername from the localhost address
  • Simplified transport configuration through setting TransportFactory instead of ITransport on SentryOptions (#1124)

Spring Boot:

  • Add the ability to register multiple OptionsConfiguration beans (#1093)
  • Initialize Logback after context refreshes (#1129)

Android:

  • Add isSideLoaded and installerStore tags automatically (Where your App. was installed from eg Google Play, Amazon Store, downloaded APK, etc...)
  • Bump: sentry-native to 0.4.6
  • Bump: Gradle to 6.8.1 and AGP to 4.1.2

4.0.0-beta.1

Features

  • Add addToTransactions to Attachment (#1191)
  • Support SENTRY_TRACES_SAMPLE_RATE conf. via env variables (#1171)
  • Pass request to CustomSamplingContext in Spring integration (#1172)
  • Move SentrySpanClientHttpRequestInterceptor to Spring module (#1181)
  • Add overload for transaction/span.finish(SpanStatus) (#1182)
  • Simplify registering traces sample callback in Spring integration (#1184)
  • Polish Performance API (#1165)
  • Set "debug" through external properties (#1186)
  • Simplify Spring integration (#1188)
  • Init overload with dsn (#1195)
  • Enable Kotlin map-like access on CustomSamplingContext (#1192)
  • Auto register custom ITransportFactory in Spring integration (#1194)
  • Improve Kotlin property access in Performance API (#1193)
  • Copy options tags to transactions (#1198)
  • Add convenient method for accessing event's throwable (#1202)

Fixes

  • Ref: Set SpanContext on SentryTransaction to avoid potential NPE (#1173)
  • Free Local Refs manually due to Android local ref. count limits
  • Bring back support for setting transaction name without ongoing transaction (#1183)

4.0.0-alpha.3

Features

  • Improve ITransaction and ISpan null-safety compatibility (#1161)
  • Automatically assign span context to captured events (#1156)
  • Autoconfigure Apache HttpClient 5 based Transport in Spring Boot integration (#1143)
  • Send user.ip_address = {{auto}} when sendDefaultPii is true (#1015)
  • Read tracesSampleRate from AndroidManifest
  • OutboxSender supports all envelope item types (#1158)
  • Read uncaught.handler.enabled property from the external configuration
  • Resolve servername from the localhost address
  • Add maxAttachmentSize to SentryOptions (#1138)
  • Drop invalid attachments (#1134)
  • Set isSideLoaded info tags
  • Add non blocking Apache HttpClient 5 based Transport (#1136)

Fixes

  • Ref: Make Attachment immutable (#1120)
  • Ref: using Calendar to generate Dates
  • Ref: Return NoOpTransaction instead of null (#1126)
  • Ref: ITransport implementations are now responsible for executing request in asynchronous or synchronous way (#1118)
  • Ref: Add option to set TransportFactory instead of ITransport on SentryOptions (#1124)
  • Ref: Simplify ITransport creation in ITransportFactory (#1135)
  • Fixes and Tests: Session serialization and deserialization
  • Inheriting sampling decision from parent (#1100)
  • Exception only sets a stack trace if there are frames
  • Initialize Logback after context refreshes (#1129)
  • Do not crash when passing null values to @Nullable methods, eg User and Scope
  • Resolving dashed properties from external configuration
  • Consider {{ auto }} as a default ip address (#1015)
  • Set release and environment on Transactions (#1152)
  • Do not set transaction on the scope automatically

4.0.0-alpha.2

Features

  • Add basic support for attachments (#1082)
  • Set transaction name on events and transactions sent using Spring integration (#1067)
  • Set global tags on SentryOptions and load them from external configuration (#1066)
  • Add API validator and remove deprecated methods
  • Add more convenient method to start a child span (#1073)
  • Autoconfigure traces callback in Spring Boot integration (#1074)
  • Resolve in-app-includes and in-app-excludes parameters from the external configuration
  • Make InAppIncludesResolver public (#1084)
  • Add the ability to register multiple OptionsConfiguration beans (#1093)
  • Database query tracing with datasource-proxy (#1095)

Fixes

  • Ref: Refactor resolving SpanContext for Throwable (#1068)
  • Ref: Change "op" to "operation" in @SentrySpan and @SentryTransaction
  • Remove method reference in SentryEnvelopeItem (#1091)
  • Set current thread only if there are no exceptions
  • SentryOptions creates GsonSerializer by default
  • Append DebugImage list if event already has it
  • Sort breadcrumbs by Date if there are breadcrumbs already in the event

4.0.0-alpha.1

Features

  • Load sentry.properties from the application's current working directory (#1046)
  • Performance monitoring (#971)
  • Performance monitoring for Spring Boot applications (#971)

Fixes

  • Ref: Refactor JSON deserialization (#1047)

3.2.1

Fixes

  • Set current thread only if theres no exceptions (#1064)
  • Append DebugImage list if event already has it (#1092)
  • Sort breadcrumbs by Date if there are breadcrumbs already in the event (#1094)
  • Free Local Refs manually due to Android local ref. count limits (#1179)

3.2.0

Features

  • Expose a Module (Debug images) Loader for Android thru sentry-native (#1043)
  • Added java doc to protocol classes based on sentry-data-schemes project (#1045)
  • Make SentryExceptionResolver Order configurable to not send handled web exceptions (#1008)
  • Resolve HTTP Proxy parameters from the external configuration (#1028)
  • Sentry NDK integration is compiled against default NDK version based on AGP's version (#1048)

Fixes

  • Bump: AGP 4.1.1 (#1040)
  • Update to sentry-native 0.4.4 and fix shared library builds (#1039)
  • use neutral Locale for String operations (#1033)
  • Clean up JNI code and properly free strings (#1050)
  • set userId for hard-crashes if no user is set (#1049)

3.1.3

Fixes

  • Fix broken NDK integration on 3.1.2 (release failed on packaging a .so file)
  • Increase max cached events to 30 (#1029)
  • Normalize DSN URI (#1030)

3.1.2

Features

  • Manually capturing User Feedback
  • Set environment to "production" by default.
  • Make public the Breadcrumb constructor that accepts a Date (#1012)

Fixes

  • ref: Validate event id on user feedback submission

3.1.1

Features

  • Bind logging related SentryProperties to Slf4j Level instead of Logback to improve Log4j2 compatibility

Fixes

  • Prevent Logback and Log4j2 integrations from re-initializing Sentry when Sentry is already initialized
  • Make sure HttpServletRequestSentryUserProvider runs by default before custom SentryUserProvider beans
  • Fix setting up Sentry in Spring Webflux annotation by changing the scope of Spring WebMvc related dependencies

3.1.0

Features

  • Make getThrowable public and improve set contexts (#967)
  • Accepted quoted values in properties from external configuration (#972)

Fixes

  • Auto-Configure inAppIncludes in Spring Boot integration (#966)
  • Bump: Android Gradle Plugin 4.0.2 (#968)
  • Don't require sentry.dsn to be set when using io.sentry:sentry-spring-boot-starter and io.sentry:sentry-logback together (#965)
  • Remove chunked streaming mode (#974)
  • Android 11 + targetSdkVersion 30 crashes Sentry on start (#977)

3.0.0

Java + Android

This release marks the re-unification of Java and Android SDK code bases. It's based on the Android 2.0 SDK, which implements Sentry's unified API.

Considerable changes were done, which include a lot of improvements. More are covered below, but the highlights are:

  • Improved log4j2 integration
    • Capture breadcrumbs for level INFO and higher
    • Raises event for ERROR and higher.
    • Minimum levels are configurable.
    • Optionally initializes the SDK via appender.xml
  • Dropped support to log4j.
  • Improved logback integration
    • Capture breadcrumbs for level INFO and higher
    • Raises event for ERROR and higher.
    • Minimum levels are configurable.
    • Optionally initializes the SDK via appender.xml
    • Configurable via Spring integration if both are enabled
  • Spring
    • No more duplicate events with Spring and logback
    • Auto initalizes if DSN is available
    • Configuration options available with auto complete
  • Google App Engine support dropped

What’s Changed

  • Callback to validate SSL certificate (#944)
  • Attach stack traces enabled by default

Android specific

  • Release health enabled by default for Android
  • Sync of Scopes for Java -> Native (NDK)
  • Bump Sentry-Native v0.4.2
  • Android 11 Support

Android migration docs

Java specific

  • Unified API for Java SDK and integrations (Spring, Spring boot starter, Servlet, Logback, Log4j2)

New Java docs are live and being improved.

Acquisition

Packages were released on bintray sentry-java, bintray sentry-android, jcenter and mavenCentral

Where is the Java 1.7 code base?

The previous Java releases, are all available in this repository through the tagged releases.

3.0.0-beta.1

What’s Changed

  • feat: ssl support (#944) @ninekaw9 @marandaneto
  • feat: sync Java to C (#937) @bruno-garcia @marandaneto
  • feat: Auto-configure Logback appender in Spring Boot integration. (#938) @maciejwalkowiak
  • feat: Add Servlet integration. (#935) @maciejwalkowiak
  • fix: Pop scope at the end of the request in Spring integration. (#936) @maciejwalkowiak
  • bump: Upgrade Spring Boot to 2.3.4. (#932) @maciejwalkowiak
  • fix: Do not set cookies when send pii is set to false. (#931) @maciejwalkowiak

Packages were released on bintray sentry-java, bintray sentry-android, jcenter and mavenCentral

We'd love to get feedback.

3.0.0-alpha.3

Features

  • Enable attach stack traces and disable attach threads by default (#921) @marandaneto

Fixes

  • Bump sentry-native to 0.4.2 (#926) @marandaneto
  • ref: remove log level as RN do not use it anymore (#924) @marandaneto
  • Read sample rate correctly from manifest meta data (#923) @marandaneto

Packages were released on bintray sentry-android and bintray sentry-java

We'd love to get feedback.

3.0.0-alpha.2

TBD

Packages were released on bintray

Note: This release marks the unification of the Java and Android Sentry codebases based on the core of the Android SDK (version 2.x). Previous releases for the Android SDK (version 2.x) can be found on the now archived: https://github.com/getsentry/sentry-android/

3.0.0-alpha.1

Features

Fixes

New releases will happen on a different repository:

https://github.com/getsentry/sentry-java

What’s Changed

Features

Fixes

  • feat: enable release health by default

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.3.1

Fixes

  • Add main thread checker for the app lifecycle integration (#525) @marandaneto
  • Set correct migration link (#523) @fupduck
  • Warn about Sentry re-initialization. (#521) @maciejwalkowiak
  • Set SDK version in MainEventProcessor. (#513) @maciejwalkowiak
  • Bump sentry-native to 0.4.0 (#512) @marandaneto
  • Bump Gradle to 6.6 and fix linting issues (#510) @marandaneto
  • fix(sentry-java): Contexts belong on the Scope (#504) @maciejwalkowiak
  • Add tests for verifying scope changes thread isolation (#508) @maciejwalkowiak
  • Set SdkVersion in default SentryOptions created in sentry-core module (#506) @maciejwalkowiak

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.3.0

Features

  • Add console application sample. (#502) @maciejwalkowiak
  • Log stacktraces in SystemOutLogger (#498) @maciejwalkowiak
  • Add method to add breadcrumb with string parameter. (#501) @maciejwalkowiak

Fixes

  • Converting UTC and ISO timestamp when missing Locale/TimeZone do not error (#505) @marandaneto
  • Call Sentry#close on JVM shutdown. (#497) @maciejwalkowiak
  • ref: sentry-core changes for console app (#473) @marandaneto

Obs: If you are using its own instance of Hub/SentryClient and reflection to set up the SDK to be usable within Libraries, this change may break your code, please fix the renamed classes.

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.2.2

Features

  • Add sdk to envelope header (#488) @marandaneto
  • Log request if response code is not 200 (#484) @marandaneto

Fixes

  • Bump plugin versions (#487) @marandaneto
  • Bump: AGP 4.0.1 (#486) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.2.1

Fixes

  • Timber adds breadcrumb even if event level is < minEventLevel (#480) @marandaneto
  • Contexts serializer avoids reflection and fixes desugaring issue (#478) @marandaneto
  • clone session before sending to the transport (#474) @marandaneto
  • Bump Gradle 6.5.1 (#479) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.2.0

Fixes

  • Negative session sequence if the date is before java date epoch (#471) @marandaneto

  • Deserialise unmapped contexts values from envelope (#470) @marandaneto

  • Bump: sentry-native 0.3.4 (#468) @marandaneto

  • feat: timber integration (#464) @marandaneto

  1. To add integrations it requires a manual initialization of the Android SDK.

  2. Add the sentry-android-timber dependency:

implementation 'io.sentry:sentry-android-timber:{version}' // version >= 2.2.0
  1. Initialize and add the SentryTimberIntegration:
SentryAndroid.init(this, options -> {
    // default values:
    // minEventLevel = ERROR
    // minBreadcrumbLevel = INFO
    options.addIntegration(new SentryTimberIntegration());

    // custom values for minEventLevel and minBreadcrumbLevel
    // options.addIntegration(new SentryTimberIntegration(SentryLevel.WARNING, SentryLevel.ERROR));
});
  1. Use the Timber integration:
try {
    int x = 1 / 0;
} catch (Exception e) {
    Timber.e(e);
}

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.7

Fixes

  • Init native libs if available on SDK init (#461) @marandaneto
  • Make JVM target explicit in sentry-core (#462) @dilbernd
  • Timestamp with millis from react-native should be in UTC format (#456) @marandaneto
  • Bump Gradle to 6.5 (#454) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.6

Fixes

  • Do not lookup sentry-debug-meta but instead load it directly (#445) @marandaneto
  • Regression on v2.1.5 which can cause a crash on SDK init

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.5

Fixes

This version has a severe bug and can cause a crash on SDK init

Please upgrade to https://github.com/getsentry/sentry-android/releases/tag/2.1.6

2.1.4

Features

  • Make gzip as default content encoding type (#433) @marandaneto
  • Use AGP 4 features (#366) @marandaneto
  • Create GH Actions CI for Ubuntu/macOS (#403) @marandaneto
  • Make root checker better and minimize false positive (#417) @marandaneto

Fixes

  • bump: sentry-native to 0.3.1 (#440) @marandaneto
  • Update last session timestamp (#437) @marandaneto
  • Filter trim memory breadcrumbs (#431) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.3

Fixes

This fixes several critical bugs in sentry-android 2.0 and 2.1

  • Sentry.init register integrations after creating the main Hub instead of doing it in the main Hub ctor (#427) @marandaneto
  • make NoOpLogger public (#425) @marandaneto
  • ConnectivityChecker returns connection status and events are not trying to be sent if no connection. (#420) @marandaneto
  • thread pool executor is a single thread executor instead of scheduled thread executor (#422) @marandaneto
  • Add Abnormal to the Session.State enum as its part of the protocol (#424) @marandaneto
  • Bump: Gradle to 6.4.1 (#419) @marandaneto

We recommend that you use sentry-android 2.1.3 over the initial release of sentry-android 2.0 and 2.1.

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.2

Features

  • Added options to configure http transport (#411) @marandaneto

Fixes

  • Phone state breadcrumbs require read_phone_state on older OS versions (#415) @marandaneto @bsergean
  • before raising ANR events, we check ProcessErrorStateInfo if available (#412) @marandaneto
  • send cached events to use a single thread executor (#405) @marandaneto
  • initing SDK on AttachBaseContext (#409) @marandaneto
  • sessions can't be abnormal, but exited if not ended properly (#410) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.1

Features

  • Added missing getters on Breadcrumb and SentryEvent (#397) @marandaneto
  • Add trim memory breadcrumbs (#395) @marandaneto
  • Only set breadcrumb extras if not empty (#394) @marandaneto
  • Added samples of how to disable automatic breadcrumbs (#389) @marandaneto

Fixes

  • Set missing release, environment and dist to sentry-native options (#404) @marandaneto
  • Do not add automatic and empty sensor breadcrumbs (#401) @marandaneto
  • ref: removed Thread.sleep from LifecycleWatcher tests, using awaitility and DateProvider (#392) @marandaneto
  • ref: added a DateTimeProvider for making retry after testable (#391) @marandaneto
  • Bump Gradle to 6.4 (#390) @marandaneto
  • Bump sentry-native to 0.2.6 (#396) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.0

Features

  • Includes all the changes of 2.1.0 alpha, beta and RC

Fixes

  • fix when PhoneStateListener is not ready for use (#387) @marandaneto
  • make ANR 5s by default (#388) @marandaneto
  • rate limiting by categories (#381) @marandaneto
  • Bump NDK to latest stable version 21.1.6352462 (#386) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.0.3

Fixes

  • patch from 2.1.0-alpha.2 - avoid crash if NDK throws UnsatisfiedLinkError (#344) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.0-RC.1

Features

  • Options for uncaught exception and make SentryOptions list Thread-Safe (#384) @marandaneto
  • Automatic breadcrumbs for app, activity and sessions lifecycles and system events (#348) @marandaneto
  • Make capture session and envelope internal (#372) @marandaneto

Fixes

  • If retry after header has empty categories, apply retry after to all of them (#377) @marandaneto
  • Discard events and envelopes if cached and retry after (#378) @marandaneto
  • Merge loadLibrary calls for sentry-native and clean up CMake files (#373) @Swatinem
  • Exceptions should be sorted oldest to newest (#370) @marandaneto
  • Check external storage size even if its read only (#368) @marandaneto
  • Wrong check for cellular network capability (#369) @marandaneto
  • add ScheduledForRemoval annotation to deprecated methods (#375) @marandaneto
  • Bump NDK to 21.0.6113669 (#367) @marandaneto
  • Bump AGP and add new make cmd to check for updates (#365) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.0-beta.2

Fixes

  • Bump sentry-native to 0.2.4 (#364) @marandaneto
  • Update current session on session start after deleting previous session (#362) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.0-beta.1

Fixes

  • Bump sentry-native to 0.2.3 (#357) @marandaneto
  • Check for androidx availability on runtime (#356) @marandaneto
  • If theres a left over session file and its crashed, we should not overwrite its state (#354) @marandaneto
  • Session should be exited state if state was ok (#352) @marandaneto
  • Envelope has dedicated endpoint (#353) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.0-alpha.2

Fixes

  • Change integration order for cached outbox events (#347) @marandaneto
  • Avoid crash if NDK throws UnsatisfiedLinkError (#344) @marandaneto
  • Avoid getting a threadlocal twice. (#339) @metlos
  • Removing session tracking guard on hub and client (#338) @marandaneto
  • Bump agp to 3.6.2 (#336) @marandaneto
  • Fix racey ANR integration (#332) @marandaneto
  • Logging envelopes path when possible instead of nullable id (#331) @marandaneto
  • Renaming transport gate method (#330) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.1.0-alpha.1

Release of Sentry's new SDK for Android.

What’s Changed

Features

  • Release health @marandaneto @bruno-garcia
  • ANR report should have 'was active=yes' on the dashboard (#299) @marandaneto
  • NDK events apply scoped data (#322) @marandaneto
  • Add a StdoutTransport (#310) @mike-burns
  • Implementing new retry after protocol (#306) @marandaneto

Fixes

  • Bump sentry-native to 0.2.2 (#305) @Swatinem
  • Missing App's info (#315) @marandaneto
  • Buffered writers/readers - otimizations (#311) @marandaneto
  • Boot time should be UTC (#309) @marandaneto
  • Make transport result public (#300) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.0.2

Release of Sentry's new SDK for Android.

Features

  • MavenCentral support (#284) @marandaneto

Fixes

  • Bump AGP to 3.6.1 (#285) @marandaneto

Packages were released on bintray, jcenter and mavenCentral

We'd love to get feedback.

2.0.1

Release of Sentry's new SDK for Android.

What’s Changed

Features

  • Attach threads/stacktraces (#267) @marandaneto
  • Add the default serverName to SentryOptions and use it in MainEventProcessor (#279) @metlos

Fixes

  • set current threadId when there's no mechanism set (#277) @marandaneto
  • Preview package manager (#269) @bruno-garcia

Packages were released on bintray, jcenter

We'd love to get feedback.

2.0.0

Release of Sentry's new SDK for Android.

New features not offered by (1.7.x):

  • NDK support
    • Captures crashes caused by native code
    • Access to the sentry-native SDK API by your native (C/C++/Rust code/..).
  • Automatic init (just add your DSN to the manifest)
    • Proguard rules are added automatically
    • Permission (Internet) is added automatically
  • Uncaught Exceptions might be captured even before the app restarts
  • Sentry's Unified API.
  • More context/device information
  • Packaged as aar
  • Frames from the app automatically marked as InApp=true (stack traces in Sentry highlights them by default).
  • Complete Sentry Protocol available.
  • All threads and their stack traces are captured.
  • Sample project in this repo to test many features (segfault, uncaught exception, ANR...)

Features from the current SDK like ANR are also available (by default triggered after 4 seconds).

Packages were released on bintray, jcenter

We'd love to get feedback.

2.0.0-rc04

Release of Sentry's new SDK for Android.

Features

  • Take sampleRate from metadata (#262) @bruno-garcia
  • Support mills timestamp format (#263) @marandaneto
  • Adding logs to installed integrations (#265) @marandaneto

Fixes

  • Breacrumb.data to string,object, Add LOG level (#264) @HazAT
  • Read release conf. on manifest (#266) @marandaneto

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.30

2.0.0-rc03

Release of Sentry's new SDK for Android.

Fixes

  • fixes (#259) - NPE check on getExternalFilesDirs items. (#260) @marandaneto
  • strictMode typo (#258) @marandaneto

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.30

2.0.0-rc02

Release of Sentry's new SDK for Android.

Features

  • Hub mode configurable (#247) @bruno-garcia
  • Added remove methods (tags/extras) to the sentry static class (#243) @marandaneto

Fixes

  • Update ndk for new sentry-native version (#235) @Swatinem @marandaneto
  • Make integrations public (#256) @marandaneto
  • Bump build-tools (#255) @marandaneto
  • Added javadocs to scope and its dependencies (#253) @marandaneto
  • Build all ABIs (#254) @marandaneto
  • Moving back ANR timeout from long to int param. (#252) @marandaneto
  • Added HubAdapter to call Sentry static methods from Integrations (#250) @marandaneto
  • New Release format (#242) @marandaneto
  • Javadocs for SentryOptions (#246) @marandaneto
  • non-app is already inApp excluded by default. (#244) @marandaneto
  • Fix if symlink exists for sentry-native (#241) @marandaneto
  • Clone method - race condition free (#226) @marandaneto
  • Refactoring breadcrumbs callback (#239) @marandaneto

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.30

2.0.0-rc01

Release of Sentry's new SDK for Android.

What’s Changed

Features

  • Added remove methods for Scope data (#237) @marandaneto
  • More device context (deviceId, connectionType and language) (#229) @marandaneto
  • Added a few java docs (Sentry, Hub and SentryClient) (#223) @marandaneto
  • Implemented diagnostic logger (#218) @marandaneto
  • Added event processors to scope (#209) @marandaneto
  • Added android transport gate (#206) @marandaneto
  • Added executor for caching values out of the main thread (#201) @marandaneto

Fixes

  • Honor RetryAfter (#236) @marandaneto
  • Add tests for SentryValues (#238) @philipphofmann
  • Do not set frames if there's none (#234) @marandaneto
  • Always call interrupt after InterruptedException (#232) @marandaneto
  • Mark as current thread if its the main thread (#228) @marandaneto
  • Fix lgtm alerts (#219) @marandaneto
  • Written unit tests to ANR integration (#215) @marandaneto
  • Added blog posts to README (#214) @marandaneto
  • Raise code coverage for Dsn to 100% (#212) @philipphofmann
  • Remove redundant times(1) for Mockito.verify (#211) @philipphofmann
  • Transport may be set on options (#203) @marandaneto
  • dist may be set on options (#204) @marandaneto
  • Throw an exception if DSN is not set (#200) @marandaneto
  • Migration guide markdown (#197) @marandaneto

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.29

2.0.0-beta02

Release of Sentry's new SDK for Android.

Features

  • addBreadcrumb overloads (#196) and (#198)

Fixes

  • fix Android bug on API 24 and 25 about getting current threads and stack traces (#194)

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.28

2.0.0-beta01

Release of Sentry's new SDK for Android.

Fixes

  • ref: ANR doesn't set handled flag (#186)
  • SDK final review (#183)
  • ref: Drop errored in favor of crashed (#187)
  • Workaround android_id (#185)
  • Renamed sampleRate (#191)
  • Making timestamp package-private or test-only (#190)
  • Split event processor in Device/App data (#180)

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.28

2.0.0-alpha09

Release of Sentry's new SDK for Android.

Features

  • Adding nativeBundle plugin (#161)
  • Adding scope methods to sentry static class (#179)

Fixes

  • fix: DSN parsing (#165)
  • Don't avoid exception type minification (#166)
  • make Gson retro compatible with older versions of AGP (#177)
  • Bump sentry-native with message object instead of a string (#172)

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.28

2.0.0-alpha08

Release of Sentry's new SDK for Android.

Fixes

  • DebugId endianness (#162)
  • Executed beforeBreadcrumb also for scope (#160)
  • Benefit of manifest merging when minSdk (#159)
  • Add method to captureMessage with level (#157)
  • Listing assets file on the wrong dir (#156)

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.28

2.0.0-alpha07

Third release of Sentry's new SDK for Android.

Fixes

  • Fixed release for jcenter and bintray

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.28

2.0.0-alpha06

Second release of Sentry's new SDK for Android.

Fixes

  • Fixed a typo on pom generation.

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.28

2.0.0-alpha05

First release of Sentry's new SDK for Android.

New features not offered by our current (1.7.x), stable SDK are:

  • NDK support
    • Captures crashes caused by native code
    • Access to the sentry-native SDK API by your native (C/C++/Rust code/..).
  • Automatic init (just add your DSN to the manifest)
    • Proguard rules are added automatically
    • Permission (Internet) is added automatically
  • Uncaught Exceptions might be captured even before the app restarts
  • Unified API which include scopes etc.
  • More context/device information
  • Packaged as aar
  • Frames from the app automatically marked as InApp=true (stack traces in Sentry highlights them by default).
  • Complete Sentry Protocol available.
  • All threads and their stack traces are captured.
  • Sample project in this repo to test many features (segfault, uncaught exception, scope)

Features from the current SDK like ANR are also available (by default triggered after 4 seconds).

Packages were released on bintray, jcenter

We'd love to get feedback and we'll work in getting the GA 2.0.0 out soon. Until then, the stable SDK offered by Sentry is at version 1.7.28