Fixes
- No longer send out empty log envelopes (#4497)
- Session Replay: Expand fix for crash on devices to all Unisoc/Spreadtrum chipsets (#4510)
- Log parameter objects are now turned into
String
viatoString
(#4515) - One of the two
SentryLogEventAttributeValue
constructors did not convert the value previously. - Logs are now flushed on shutdown (#4503)
- User Feedback: Do not redefine system attributes for
SentryUserFeedbackButton
, but reference them instead (#4519)
Features
- Add chipset to device context (#4512)
- Send Logback logs to Sentry as logs (#4502)
- You need to enable the logs feature and can also set the
minimumLevel
for log events:xml <appender name="sentry" class="io.sentry.logback.SentryAppender"> <options> <!-- NOTE: Replace the test DSN below with YOUR OWN DSN to see the events from this app in your Sentry project/dashboard --> <dsn>https://502f25099c204a2fbf4cb16edc5975d1@o447951.ingest.sentry.io/5428563</dsn> <logs> <enabled>true</enabled> </logs> </options> <!-- Demonstrates how to modify the minimum values --> <!-- Default for Events is ERROR --> <minimumEventLevel>WARN</minimumEventLevel> <!-- Default for Breadcrumbs is INFO --> <minimumBreadcrumbLevel>DEBUG</minimumBreadcrumbLevel> <!-- Default for Log Events is INFO --> <minimumLevel>INFO</minimumLevel> </appender>
- For Spring Boot you may also enable it in
application.properties
/application.yml
:properties sentry.logs.enabled=true sentry.logging.minimum-level=error
- If you manually initialize Sentry, you may also enable logs on
Sentry.init
:java Sentry.init(options -> { ... options.getLogs().setEnabled(true); });
- Enabling via
sentry.properties
is also possible:properties logs.enabled=true
- Automatically use
SentryOptions.Logs.BeforeSendLogCallback
Spring beans (#4509)