github getsentry/sentry-java 3.0.0

latest releases: 7.15.0-alpha.1, 7.14.0, 7.13.0...
4 years ago

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

Note for Sentry On Premise users

This version uses the envelope endpoint. If you are using an on-premise installation it requires Sentry version >= v20.6.0 to work. If you are using sentry.io nothing will change and no action is needed.

What’s Changed

  • Callback to validate SSL certificate (#944)
  • Attach stack traces enabled by default
  • Multiple samples in the sentry-samples directory

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)
  • Gson serialization. The previous major version (1.7.31) used Jackson for serialization.

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.

Don't miss a new sentry-java release

NewReleases is sending notifications on new releases.