Skip to content

Add LoggingIntegration support for SentryLog#3050

Merged
buenaflor merged 20 commits into
mainfrom
feat/logging-integration-support-for-logs
Jul 15, 2025
Merged

Add LoggingIntegration support for SentryLog#3050
buenaflor merged 20 commits into
mainfrom
feat/logging-integration-support-for-logs

Conversation

@denrase

@denrase denrase commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator

📜 Description

Add LoggingIntegration support for SentryLog

💡 Motivation and Context

Closes #2973

💚 How did you test it?

Unit tests

📝 Checklist

  • I reviewed submitted code
  • 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
  • All tests passing
  • No breaking changes

@github-actions

github-actions Bot commented Jul 8, 2025

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

Generated by 🚫 dangerJS against 0286162

@codecov

codecov Bot commented Jul 8, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.96%. Comparing base (2f540b8) to head (0286162).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3050      +/-   ##
==========================================
+ Coverage   87.85%   96.96%   +9.11%     
==========================================
  Files         287        2     -285     
  Lines        9733       66    -9667     
==========================================
- Hits         8551       64    -8487     
+ Misses       1182        2    -1180     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@denrase
denrase marked this pull request as ready for review July 8, 2025 09:49
@buenaflor buenaflor changed the title Add LoggingIntegration support for SenryLog Add LoggingIntegration support for SentryLog Jul 8, 2025
Comment thread logging/lib/src/logging_integration.dart Outdated
@denrase

denrase commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator Author

@buenaflor Also not sure if there is some case where we want to map to the SentryLogLevel.trace case.

@denrase
denrase requested review from AbhiPrasad and buenaflor July 8, 2025 13:34
@github-actions

github-actions Bot commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1258.43 ms 1274.55 ms 16.12 ms
Size 7.86 MiB 9.44 MiB 1.58 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
640ad0c 1241.04 ms 1253.96 ms 12.92 ms
ec78888 1251.37 ms 1269.40 ms 18.04 ms
2d34233 1258.19 ms 1268.92 ms 10.73 ms
e2d675d 1238.48 ms 1242.76 ms 4.28 ms
b6c8720 1252.65 ms 1266.61 ms 13.96 ms
73dca78 1246.65 ms 1265.42 ms 18.76 ms
0fb3800 1256.60 ms 1266.28 ms 9.68 ms
aeb02f2 1244.29 ms 1256.55 ms 12.26 ms
6ba4675 1223.12 ms 1238.17 ms 15.04 ms
73a3c38 1263.37 ms 1277.90 ms 14.53 ms

App size

Revision Plain With Sentry Diff
640ad0c 7.86 MiB 9.44 MiB 1.58 MiB
ec78888 7.86 MiB 9.44 MiB 1.58 MiB
2d34233 7.86 MiB 9.44 MiB 1.58 MiB
e2d675d 7.86 MiB 9.44 MiB 1.58 MiB
b6c8720 7.86 MiB 9.44 MiB 1.58 MiB
73dca78 7.86 MiB 9.44 MiB 1.58 MiB
0fb3800 7.86 MiB 9.44 MiB 1.58 MiB
aeb02f2 7.86 MiB 9.44 MiB 1.58 MiB
6ba4675 7.86 MiB 9.44 MiB 1.58 MiB
73a3c38 7.86 MiB 9.44 MiB 1.58 MiB

Comment thread logging/lib/src/logging_integration.dart Outdated
@denrase
denrase requested a review from buenaflor July 9, 2025 09:42
Comment thread logging/lib/src/logging_integration.dart Outdated
Comment thread logging/lib/src/logging_integration.dart Outdated
@denrase
denrase requested a review from buenaflor July 10, 2025 08:51

@buenaflor buenaflor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good so far, got one last comment regarding documenting it

cursor[bot]

This comment was marked as outdated.

@github-actions

github-actions Bot commented Jul 14, 2025

Copy link
Copy Markdown
Contributor

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 510.15 ms 556.83 ms 46.68 ms
Size 6.54 MiB 7.69 MiB 1.15 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
575ebaa 478.00 ms 585.76 ms 107.76 ms
ec78888 457.94 ms 519.96 ms 62.02 ms
81f83eb 471.40 ms 522.14 ms 50.74 ms
0fb3800 465.64 ms 536.77 ms 71.13 ms
e2d675d 457.92 ms 529.17 ms 71.25 ms
9b99523 456.91 ms 490.55 ms 33.64 ms
c8596a6 474.00 ms 492.96 ms 18.96 ms
73dca78 476.53 ms 522.21 ms 45.68 ms
793f4dc 462.68 ms 544.21 ms 81.53 ms
93b7728 475.28 ms 489.13 ms 13.86 ms

App size

Revision Plain With Sentry Diff
575ebaa 6.54 MiB 7.69 MiB 1.15 MiB
ec78888 6.54 MiB 7.69 MiB 1.15 MiB
81f83eb 6.54 MiB 7.69 MiB 1.15 MiB
0fb3800 6.54 MiB 7.69 MiB 1.15 MiB
e2d675d 6.54 MiB 7.69 MiB 1.15 MiB
9b99523 6.54 MiB 7.69 MiB 1.15 MiB
c8596a6 6.54 MiB 7.53 MiB 1015.27 KiB
73dca78 6.54 MiB 7.69 MiB 1.15 MiB
793f4dc 6.54 MiB 7.69 MiB 1.15 MiB
93b7728 6.54 MiB 7.69 MiB 1.15 MiB

Previous results on branch: feat/logging-integration-support-for-logs

Startup times

Revision Plain With Sentry Diff
c819e6a 476.25 ms 528.52 ms 52.27 ms

App size

Revision Plain With Sentry Diff
c819e6a 6.54 MiB 7.69 MiB 1.15 MiB

@buenaflor

Copy link
Copy Markdown
Contributor

@denrase pls check the cursor comment above

denrase added 2 commits July 14, 2025 13:59
…m:getsentry/sentry-dart into feat/logging-integration-support-for-logs

# Conflicts:
#	logging/lib/src/logging_integration.dart
cursor[bot]

This comment was marked as outdated.

@denrase

denrase commented Jul 14, 2025

Copy link
Copy Markdown
Collaborator Author

@buenaflor Handled the cases according to their numeric values.

@denrase
denrase requested a review from buenaflor July 14, 2025 12:09
cursor[bot]

This comment was marked as outdated.

Comment thread logging/lib/src/logging_integration.dart Outdated
@denrase
denrase requested a review from buenaflor July 15, 2025 12:25

@buenaflor buenaflor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice!

@buenaflor
buenaflor merged commit e843899 into main Jul 15, 2025
21 checks passed
@buenaflor
buenaflor deleted the feat/logging-integration-support-for-logs branch July 15, 2025 20:40
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.

Add logging integration support for structured logs

3 participants