Skip to content

chore(deps): v7: update Android SDK to v8.15.1 #4953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 27, 2025
Merged

Conversation

antonis
Copy link
Collaborator

@antonis antonis commented Jun 27, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

Based on #4653

📜 Description

Changelog

8.15.1

Fixes

  • Enabling Sentry Logs through Logback in Spring Boot config did not work in 3.15.0 (#4523)

8.15.0

Features

  • Add chipset to device context (#4512)

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 via toString (#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

  • Send Logback logs to Sentry as logs (#4502)
    • You need to enable the logs feature and can also set the minimumLevel for log events:
      <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://502f25099c204a2fbf4cb16edc5975d1o447951.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:
      sentry.logs.enabled=true
      sentry.logging.minimum-level=error
    • If you manually initialize Sentry, you may also enable logs on Sentry.init:
      Sentry.init(options -> {
        ...
        options.getLogs().setEnabled(true);
      });
    • Enabling via sentry.properties is also possible:
      logs.enabled=true
  • Automatically use SentryOptions.Logs.BeforeSendLogCallback Spring beans (#4509)

Dependencies

💡 Motivation and Context

https://github.com/getsentry/sentry-java/releases/tag/8.15.0
https://github.com/getsentry/sentry-java/releases/tag/8.15.1

💚 How did you test it?

Manual, CI

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

Copy link
Contributor

github-actions bot commented Jun 27, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 379.12 ms 417.22 ms 38.10 ms
Size 7.15 MiB 8.35 MiB 1.20 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
3c99746+dirty 400.65 ms 399.59 ms -1.06 ms
7eff2d7+dirty 393.13 ms 426.77 ms 33.65 ms
472960b+dirty 394.39 ms 376.18 ms -18.20 ms
f870f2d+dirty 398.49 ms 434.24 ms 35.75 ms

App size

Revision Plain With Sentry Diff
3c99746+dirty 7.15 MiB 8.34 MiB 1.18 MiB
7eff2d7+dirty 7.15 MiB 8.35 MiB 1.20 MiB
472960b+dirty 7.15 MiB 8.34 MiB 1.18 MiB
f870f2d+dirty 7.15 MiB 8.34 MiB 1.18 MiB

Previous results on branch: antonis/android-8.15.1

Startup times

Revision Plain With Sentry Diff
29b8cf9+dirty 401.25 ms 414.80 ms 13.55 ms

App size

Revision Plain With Sentry Diff
29b8cf9+dirty 7.15 MiB 8.35 MiB 1.20 MiB

Copy link
Contributor

github-actions bot commented Jun 27, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1230.41 ms 1232.37 ms 1.96 ms
Size 2.63 MiB 3.79 MiB 1.16 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
7eff2d7+dirty 1225.34 ms 1234.53 ms 9.19 ms
3c99746+dirty 1215.12 ms 1222.31 ms 7.18 ms
472960b+dirty 1213.96 ms 1222.58 ms 8.62 ms
f870f2d+dirty 1227.18 ms 1232.30 ms 5.12 ms

App size

Revision Plain With Sentry Diff
7eff2d7+dirty 2.63 MiB 3.79 MiB 1.16 MiB
3c99746+dirty 2.63 MiB 3.78 MiB 1.15 MiB
472960b+dirty 2.63 MiB 3.79 MiB 1.15 MiB
f870f2d+dirty 2.63 MiB 3.79 MiB 1.15 MiB

Previous results on branch: antonis/android-8.15.1

Startup times

Revision Plain With Sentry Diff
29b8cf9+dirty 1227.43 ms 1217.04 ms -10.39 ms

App size

Revision Plain With Sentry Diff
29b8cf9+dirty 2.63 MiB 3.79 MiB 1.16 MiB

Copy link
Contributor

github-actions bot commented Jun 27, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1222.73 ms 1229.82 ms 7.09 ms
Size 3.19 MiB 4.36 MiB 1.17 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
7eff2d7+dirty 1224.84 ms 1227.94 ms 3.10 ms
3c99746+dirty 1227.65 ms 1228.81 ms 1.16 ms
472960b+dirty 1243.67 ms 1233.57 ms -10.11 ms
f870f2d+dirty 1230.08 ms 1238.88 ms 8.80 ms

App size

Revision Plain With Sentry Diff
7eff2d7+dirty 3.19 MiB 4.36 MiB 1.17 MiB
3c99746+dirty 3.19 MiB 4.35 MiB 1.16 MiB
472960b+dirty 3.19 MiB 4.36 MiB 1.17 MiB
f870f2d+dirty 3.19 MiB 4.36 MiB 1.17 MiB

Previous results on branch: antonis/android-8.15.1

Startup times

Revision Plain With Sentry Diff
29b8cf9+dirty 1227.59 ms 1229.94 ms 2.35 ms

App size

Revision Plain With Sentry Diff
29b8cf9+dirty 3.19 MiB 4.36 MiB 1.17 MiB

Copy link
Contributor

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 409.20 ms 403.26 ms -5.94 ms
Size 17.75 MiB 19.60 MiB 1.85 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
472960b 418.84 ms 405.38 ms -13.46 ms
3c99746 399.51 ms 429.09 ms 29.58 ms
f870f2d 444.67 ms 449.62 ms 4.95 ms
7eff2d7 420.64 ms 401.86 ms -18.78 ms

App size

Revision Plain With Sentry Diff
472960b 17.75 MiB 19.58 MiB 1.83 MiB
3c99746 17.75 MiB 19.58 MiB 1.83 MiB
f870f2d 17.75 MiB 19.58 MiB 1.83 MiB
7eff2d7 17.75 MiB 19.60 MiB 1.85 MiB

@antonis antonis marked this pull request as ready for review June 27, 2025 09:02
@antonis antonis requested a review from lucas-zimerman as a code owner June 27, 2025 09:02
Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@antonis antonis merged commit ba7b8e8 into v7 Jun 27, 2025
45 of 46 checks passed
@antonis antonis deleted the antonis/android-8.15.1 branch June 27, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants