Sentry v2.2.0 Release Notes

  • ๐Ÿ›  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
    

    3) 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));
    });
    

    4) 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.