- Replace
tracestate
header withbaggage
header (#2078) - Allow opting out of device info collection that requires Inter-Process Communication (IPC) (#2100)
- 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)
- Starting with version
6.0.0
of thesentry
package, Sentry's self hosted version >= v21.9.0 is required or you have to manually disable sending client reports via thesendClientReports
option. This only applies to self-hosted Sentry. If you are using sentry.io, no action is needed.
- 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
andJsonDeserializer
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
- Introduce
- 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 fromExternalOptions
instead of another instance ofSentryOptions
- Following boolean properties from
SentryOptions
that allowednull
values are now not nullable -debug
,enableUncaughtExceptionHandler
,enableDeduplication
SentryOptions
cannot be created anymore usingPropertiesProvider
withSentryOptions#from
method. UseExternalOptions#from
instead and merge created object withSentryOptions#merge
- Bump: Kotlin to 1.5 and compatibility to 1.4 for sentry-android-timber (#1815)
- Change order of event filtering mechanisms and only send session update for dropped events if session state changed (#2028)
- Sentry Timber integration throws an exception when using args (#1986)
- Bring back support for
Timber.tag
(#1974)
- Sentry Timber integration does not submit msg.formatted breadcrumbs (#1957)
- ANR WatchDog won't crash on SecurityException (#1962)
- Automatically enable
Timber
andFragment
integrations if they are present on the classpath (#1936)
- 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)
- 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.
- NPE while adding "response_body_size" breadcrumb, when response body length is unknown (#1908)
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.
- Add options.printUncaughtStackTrace to print uncaught exceptions (#1890)
- NPE while adding "response_body_size" breadcrumb, when response body is null (#1884)
- Bump: AGP to 7.1.0 (#1892)
- Add breadcrumbs support for UI events (automatically captured) (#1876)
- Change scope of servlet-api to compileOnly (#1880)
- Do not create SentryExceptionResolver bean when Spring MVC is not on the classpath (#1865)
- Detect App Cold start correctly for Hybrid SDKs (#1855)
- Bump: log4j to 2.17.0 (#1852)
- Bump: logback to 1.2.9 (#1853)
- Add locale to device context and deprecate language (#1832)
- Add
SentryFileInputStream
andSentryFileOutputStream
for File I/O performance instrumentation (#1826) - Add
SentryFileReader
andSentryFileWriter
for File I/O instrumentation (#1843)
- Bump: log4j to 2.15.0 (#1839)
- Ref: Rename Fragment span operation from
ui.fragment.load
toui.load
(#1824) - Ref: change
java.util.Random
tojava.security.SecureRandom
for possible security reasons (#1831)
- Only report App start measurement for full launch on Android (#1821)
- Ref: catch Throwable instead of Exception to suppress internal SDK errors (#1812)
- Refactor OkHttp and Apollo to Kotlin functional interfaces (#1797)
- Add secondary constructor to SentryInstrumentation (#1804)
- Do not start fragment span if not added to the Activity (#1813)
- Add
graphql-java
instrumentation (#1777)
- Do not crash when event processors throw a lower level Throwable class (#1800)
- ActivityFramesTracker does not throw if Activity has no observers (#1799)
- Add datasource tracing with P6Spy (#1784)
- ActivityFramesTracker does not throw if Activity has not been added (#1782)
- PerformanceAndroidEventProcessor uses up to date isTracingEnabled set on Configuration callback (#1786)
- Window.FEATURE_NO_TITLE does not work when using activity traces (#1769)
- unregister UncaughtExceptionHandler on close (#1770)
- Make ActivityFramesTracker operations thread-safe (#1762)
- Clone Scope Contexts (#1763)
- Bump: AGP to 7.0.3 (#1765)
- Close HostnameCache#executorService on SentryClient#close (#1757)
- Add isCrashedLastRun support (#1739)
- Attach Java vendor and version to events and transactions (#1703)
- Handle exception if Context.registerReceiver throws (#1747)
- Allow setting proguard via Options and/or external resources (#1728)
- Add breadcrumbs for the Apollo integration (#1726)
- Don't set lastEventId for transactions (#1727)
- ActivityLifecycleIntegration#appStartSpan memory leak (#1732)
- Add "data" to spans (#1717)
- Check at runtime if AndroidX.Core is available (#1718)
- Should not capture unfinished transaction (#1719)
- 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)
- 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)
- Servlet 3.1 compatibility issue (#1681)
- Do not drop Contexts key if Collection, Array or Char (#1680)
- Add support for async methods in Spring MVC (#1652)
- Add secondary constructor taking IHub to SentryOkHttpInterceptor (#1657)
- Merge external map properties (#1656)
- 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)
- Spring WebClient integration (#1621)
- OpenFeign integration (#1632)
- Add more convenient way to pass BeforeSpanCallback in OpenFeign integration (#1637)
- Bump: sentry-native to 0.4.12 (#1651)
- No documented changes.
- Generate Sentry BOM (#1486)
- Slow/Frozen frames metrics (#1609)
- Add request body extraction for Spring MVC integration (#1595)
- set min sdk version of sentry-android-fragment to API 14 (#1608)
- Ser/Deser of the UserFeedback from cached envelope (#1611)
- Make SentryAppender non-final for Log4j2 and Logback (#1603)
- Do not throw IAE when tracing header contain invalid trace id (#1605)
- Update sentry-native to 0.4.11 (#1591)
- Spring Webflux integration (#1529)
- 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)
- 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)
- Sources and Javadoc artifacts were mixed up (#1515)
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.
- 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)
- Add secondary constructor to SentryOkHttpInterceptor (#1491)
- Add option to enable debug mode in Log4j2 integration (#1492)
- Ref: Replace clone() with copy constructor (#1496)
- OkHttp callback for Customising the Span (#1478)
- Add breadcrumb in Spring RestTemplate integration (#1481)
- Add coroutines support (#1479)
- Cloning Stack (#1483)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- Activity tracing auto instrumentation
- 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)
- 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.
- 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)
This release brings the Sentry Performance feature to Java SDK, Spring, Spring Boot, and Android integrations. Read more in the reference documentation:
- 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
- Load
- 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 ofITransport
on SentryOptions (#1124)
- Add the ability to register multiple
OptionsConfiguration
beans (#1093) - Initialize Logback after context refreshes (#1129)
- Add
isSideLoaded
andinstallerStore
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
- 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)
- 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)
- 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)
- 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 ofITransport
onSentryOptions
(#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
- 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)
- 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
- Load
sentry.properties
from the application's current working directory (#1046) - Performance monitoring (#971)
- Performance monitoring for Spring Boot applications (#971)
- Ref: Refactor JSON deserialization (#1047)
- 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)
- 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)
- 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)
- 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)
- Manually capturing User Feedback
- Set environment to "production" by default.
- Make public the Breadcrumb constructor that accepts a Date (#1012)
- ref: Validate event id on user feedback submission
- Bind logging related SentryProperties to Slf4j Level instead of Logback to improve Log4j2 compatibility
- 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
- Make getThrowable public and improve set contexts (#967)
- Accepted quoted values in properties from external configuration (#972)
- 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 usingio.sentry:sentry-spring-boot-starter
andio.sentry:sentry-logback
together (#965) - Remove chunked streaming mode (#974)
- Android 11 + targetSdkVersion 30 crashes Sentry on start (#977)
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
- Callback to validate SSL certificate (#944)
- Attach stack traces enabled by default
- Release health enabled by default for Android
- Sync of Scopes for Java -> Native (NDK)
- Bump Sentry-Native v0.4.2
- Android 11 Support
- Unified API for Java SDK and integrations (Spring, Spring boot starter, Servlet, Logback, Log4j2)
New Java docs are live and being improved.
Packages were released on bintray sentry-java
, bintray sentry-android
, jcenter
and mavenCentral
The previous Java releases, are all available in this repository through the tagged releases.
- 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.
- Enable attach stack traces and disable attach threads by default (#921) @marandaneto
- 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.
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/
https://github.com/getsentry/sentry-java
- feat: enable release health by default
Packages were released on bintray
, jcenter
and mavenCentral
We'd love to get feedback.
- 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 defaultSentryOptions
created in sentry-core module (#506) @maciejwalkowiak
Packages were released on bintray
, jcenter
and mavenCentral
We'd love to get feedback.
- Add console application sample. (#502) @maciejwalkowiak
- Log stacktraces in SystemOutLogger (#498) @maciejwalkowiak
- Add method to add breadcrumb with string parameter. (#501) @maciejwalkowiak
- 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.
- Add sdk to envelope header (#488) @marandaneto
- Log request if response code is not 200 (#484) @marandaneto
Packages were released on bintray
, jcenter
and mavenCentral
We'd love to get feedback.
- 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.
-
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
-
To add integrations it requires a manual initialization of the Android SDK.
-
Add the
sentry-android-timber
dependency:
implementation 'io.sentry:sentry-android-timber:{version}' // version >= 2.2.0
- 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));
});
- 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.
- 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.
- 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.
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
- 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
- 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.
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.
- Added options to configure http transport (#411) @marandaneto
- 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.
- 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
- 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.
- Includes all the changes of 2.1.0 alpha, beta and RC
- 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.
- 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.
- 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
- 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.
- 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.
- 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.
- 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.
Release of Sentry's new SDK for Android.
- 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
- 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.
Release of Sentry's new SDK for Android.
- MavenCentral support (#284) @marandaneto
- Bump AGP to 3.6.1 (#285) @marandaneto
Packages were released on bintray
, jcenter
and mavenCentral
We'd love to get feedback.
Release of Sentry's new SDK for Android.
- Attach threads/stacktraces (#267) @marandaneto
- Add the default serverName to SentryOptions and use it in MainEventProcessor (#279) @metlos
- 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.
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.
Release of Sentry's new SDK for Android.
- Take sampleRate from metadata (#262) @bruno-garcia
- Support mills timestamp format (#263) @marandaneto
- Adding logs to installed integrations (#265) @marandaneto
- 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
Release of Sentry's new SDK for Android.
- 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
Release of Sentry's new SDK for Android.
- Hub mode configurable (#247) @bruno-garcia
- Added remove methods (tags/extras) to the sentry static class (#243) @marandaneto
- 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
Release of Sentry's new SDK for Android.
- 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
- 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
Release of Sentry's new SDK for Android.
- 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
Release of Sentry's new SDK for Android.
- 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
Release of Sentry's new SDK for Android.
- 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
Release of Sentry's new SDK for Android.
- 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
Third release of Sentry's new SDK for Android.
- 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
Second release of Sentry's new SDK for Android.
- 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
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