Skip to content

Conversation

@stefanosiano
Copy link
Contributor

📜 Description

Logs captured by Timber are now sent as Sentry Logs

💡 Motivation and Context

Closes #4407

💚 How did you test it?

📝 Checklist

  • I added tests to verify the 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.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

@github-actions
Copy link
Contributor

github-actions bot commented Jun 13, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against d4c9a7c

private val minEventLevel: SentryLevel,
private val minBreadcrumbLevel: SentryLevel
private val minBreadcrumbLevel: SentryLevel,
private val minLogsLevel: SentryLogLevel = SentryLogLevel.INFO
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this default value so we don't introduce breaking changes

@stefanosiano stefanosiano changed the base branch from main to feat/logcat-sentry-logs June 13, 2025 14:51
@stefanosiano stefanosiano marked this pull request as ready for review June 13, 2025 14:52
@github-actions
Copy link
Contributor

github-actions bot commented Jun 13, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 425.53 ms 469.40 ms 43.87 ms
Size 1.58 MiB 2.09 MiB 518.92 KiB

Previous results on branch: feat/timber-sentry-logs

Startup times

Revision Plain With Sentry Diff
dd482b5 405.70 ms 418.73 ms 13.03 ms
07acfff 386.38 ms 412.92 ms 26.54 ms
a3c7c46 399.67 ms 444.53 ms 44.86 ms

App size

Revision Plain With Sentry Diff
dd482b5 1.58 MiB 2.09 MiB 518.90 KiB
07acfff 1.58 MiB 2.08 MiB 511.32 KiB
a3c7c46 1.58 MiB 2.08 MiB 511.32 KiB

# Conflicts:
#	CHANGELOG.md
#	sentry-android-core/src/test/java/io/sentry/android/core/InternalSentrySdkTest.kt
#	sentry-android-core/src/test/java/io/sentry/android/core/SentryLogcatAdapterTest.kt
# Conflicts:
#	sentry-android-timber/src/main/java/io/sentry/android/timber/SentryTimberIntegration.kt
#	sentry-android-timber/src/main/java/io/sentry/android/timber/SentryTimberTree.kt
#	sentry-android-timber/src/test/java/io/sentry/android/timber/SentryTimberIntegrationTest.kt
#	sentry-android-timber/src/test/java/io/sentry/android/timber/SentryTimberTreeTest.kt
Copy link
Member

@adinauer adinauer left a comment

Choose a reason for hiding this comment

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

Mostly LGTM, just some questions.

Base automatically changed from feat/logcat-sentry-logs to main July 7, 2025 09:21
# Conflicts:
#	CHANGELOG.md
#	sentry-android-core/src/main/java/io/sentry/android/core/SentryLogcatAdapter.java
#	sentry-android-core/src/test/java/io/sentry/android/core/SentryLogcatAdapterTest.kt
@stefanosiano stefanosiano merged commit d1e46e5 into main Jul 7, 2025
33 of 34 checks passed
@stefanosiano stefanosiano deleted the feat/timber-sentry-logs branch July 7, 2025 11:02
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.

Integration for Sentry Logs through Timber

4 participants