Skip to content

Conversation

@denrase
Copy link
Collaborator

@denrase denrase commented Jul 22, 2025

📜 Description

Tag all spans with thread info

  • Moves the lifecycle registry from client to options
  • Dispatch new OnSpanStart lifecycle event for tracer span creation
  • Adds integration to add "thread" (isolate) info

💡 Motivation and Context

Closes #2505

💚 How did you test it?

📝 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

🔮 Next steps

@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

❌ Patch coverage is 92.50000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.66%. Comparing base (e45c0e1) to head (5959eea).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
flutter/lib/src/isolate_helper.dart 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3101   +/-   ##
=======================================
  Coverage   87.66%   87.66%           
=======================================
  Files         288      290    +2     
  Lines        9822     9834   +12     
=======================================
+ Hits         8610     8621   +11     
- Misses       1212     1213    +1     

☔ 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.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 22, 2025

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 480.02 ms 571.29 ms 91.27 ms
Size 6.54 MiB 7.70 MiB 1.17 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
73dca78 476.53 ms 522.21 ms 45.68 ms
93b7728 475.28 ms 489.13 ms 13.86 ms
0fb45d0 482.79 ms 554.02 ms 71.23 ms
e2d675d 457.92 ms 529.17 ms 71.25 ms
79f6b41 469.66 ms 525.90 ms 56.24 ms
81f83eb 471.40 ms 522.14 ms 50.74 ms
ec78888 457.94 ms 519.96 ms 62.02 ms
3615e19 468.38 ms 504.71 ms 36.33 ms
4481076 484.08 ms 505.70 ms 21.61 ms
793f4dc 462.68 ms 544.21 ms 81.53 ms

App size

Revision Plain With Sentry Diff
73dca78 6.54 MiB 7.69 MiB 1.15 MiB
93b7728 6.54 MiB 7.69 MiB 1.15 MiB
0fb45d0 6.54 MiB 7.70 MiB 1.17 MiB
e2d675d 6.54 MiB 7.69 MiB 1.15 MiB
79f6b41 6.54 MiB 7.69 MiB 1.15 MiB
81f83eb 6.54 MiB 7.69 MiB 1.15 MiB
ec78888 6.54 MiB 7.69 MiB 1.15 MiB
3615e19 6.54 MiB 7.70 MiB 1.16 MiB
4481076 6.54 MiB 7.69 MiB 1.15 MiB
793f4dc 6.54 MiB 7.69 MiB 1.15 MiB

Previous results on branch: enha/add-isolate-info-to-spans

Startup times

Revision Plain With Sentry Diff
4c94418 471.52 ms 535.24 ms 63.72 ms
882bc32 482.24 ms 560.18 ms 77.94 ms

App size

Revision Plain With Sentry Diff
4c94418 6.54 MiB 7.70 MiB 1.17 MiB
882bc32 6.54 MiB 7.70 MiB 1.17 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Jul 24, 2025

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1239.57 ms 1260.60 ms 21.03 ms
Size 7.86 MiB 9.44 MiB 1.58 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
93b7728 1247.23 ms 1264.87 ms 17.64 ms
3615e19 1225.02 ms 1234.57 ms 9.55 ms
79f6b41 1269.33 ms 1279.71 ms 10.38 ms
cc4e375 1253.06 ms 1263.81 ms 10.75 ms
b6c8720 1252.65 ms 1266.61 ms 13.96 ms
575ebaa 1262.20 ms 1274.24 ms 12.04 ms
ec78888 1251.37 ms 1269.40 ms 18.04 ms
793f4dc 1262.50 ms 1282.35 ms 19.85 ms
765aa8b 1259.09 ms 1269.90 ms 10.82 ms
2d34233 1258.19 ms 1268.92 ms 10.73 ms

App size

Revision Plain With Sentry Diff
93b7728 7.86 MiB 9.44 MiB 1.58 MiB
3615e19 7.86 MiB 9.44 MiB 1.58 MiB
79f6b41 7.86 MiB 9.44 MiB 1.58 MiB
cc4e375 7.86 MiB 9.44 MiB 1.58 MiB
b6c8720 7.86 MiB 9.44 MiB 1.58 MiB
575ebaa 7.86 MiB 9.44 MiB 1.58 MiB
ec78888 7.86 MiB 9.44 MiB 1.58 MiB
793f4dc 7.86 MiB 9.44 MiB 1.58 MiB
765aa8b 7.86 MiB 9.44 MiB 1.58 MiB
2d34233 7.86 MiB 9.44 MiB 1.58 MiB

Previous results on branch: enha/add-isolate-info-to-spans

Startup times

Revision Plain With Sentry Diff
882bc32 1247.79 ms 1270.38 ms 22.59 ms
4c94418 1261.71 ms 1262.76 ms 1.05 ms

App size

Revision Plain With Sentry Diff
882bc32 7.86 MiB 9.44 MiB 1.58 MiB
4c94418 7.86 MiB 9.44 MiB 1.58 MiB

@denrase denrase marked this pull request as ready for review July 28, 2025 15:04
@denrase denrase requested a review from stefanosiano as a code owner July 28, 2025 15:04
@denrase denrase requested a review from buenaflor July 28, 2025 15:04
Copy link
Contributor

@buenaflor buenaflor left a comment

Choose a reason for hiding this comment

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

nice 👍

tbh I don't like it so much that we are using the options for storing everything but I guess it's a convention now in this codebase

@denrase
Copy link
Collaborator Author

denrase commented Aug 4, 2025

@buenaflor We could start to move internal classes out of options and into something like a dependency container or similar.

@denrase denrase requested a review from buenaflor August 4, 2025 14:12
@buenaflor
Copy link
Contributor

We could start to move internal classes out of options and into something like a dependency container or similar.

we can come up with something later but it's fine for now

cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@buenaflor buenaflor left a comment

Choose a reason for hiding this comment

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

looks good 👍

@denrase denrase merged commit 7cfbbd6 into main Aug 5, 2025
163 checks passed
@denrase denrase deleted the enha/add-isolate-info-to-spans branch August 5, 2025 06:37
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.

Tag all spans with thread info

3 participants