Return transaction for Sentry.getSpan when global hub mode is enabled#2855
Return transaction for Sentry.getSpan when global hub mode is enabled#2855markushi merged 14 commits intofeat/7.0.0from
Conversation
|
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 015f93f | 314.22 ms | 348.98 ms | 34.75 ms |
| bfee4ed | 342.45 ms | 369.92 ms | 27.47 ms |
| e9072f6 | 295.55 ms | 371.12 ms | 75.57 ms |
| 3d502fb | 316.02 ms | 358.81 ms | 42.79 ms |
| 6cd0641 | 312.44 ms | 359.16 ms | 46.72 ms |
| 9ef1fa6 | 324.19 ms | 374.00 ms | 49.81 ms |
| e068d53 | 307.73 ms | 340.84 ms | 33.11 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 015f93f | 1.72 MiB | 2.26 MiB | 547.97 KiB |
| bfee4ed | 1.72 MiB | 2.29 MiB | 575.30 KiB |
| e9072f6 | 1.72 MiB | 2.29 MiB | 575.26 KiB |
| 3d502fb | 1.72 MiB | 2.29 MiB | 576.58 KiB |
| 6cd0641 | 1.72 MiB | 2.26 MiB | 547.97 KiB |
| 9ef1fa6 | 1.72 MiB | 2.29 MiB | 576.28 KiB |
| e068d53 | 1.72 MiB | 2.29 MiB | 575.30 KiB |
Codecov ReportPatch coverage is 📢 Thoughts on this report? Let us know!. |
We could just use |
romtsn
left a comment
There was a problem hiding this comment.
LGTM, but I think we also have to do it for Apollo, at least on Android? Is the apollo integration used server-side as well @adinauer? But we have the same problem for the okhttp integration now anyway, if someone is using it on the server alongside the Java SDK
It's a client only, we have support for Or do you mean can this be used in a backend application? That's a yes. Not really sure about details here, maybe we can do a quick call if you need my input here so I can better grasp implications. |
|
Let's change the |
|
@markushi I think the PR is still missing |
romtsn
left a comment
There was a problem hiding this comment.
looks good now, thanks for addressing back-and-forths 🎉



📜 Description
Fixes #1828
💡 Motivation and Context
Just like Cocoa, always return the root transaction instead of the last active span. This is only applied if globalHubMode is enabled.
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps