| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Sorry, something went wrong.
📲 Install BuildsAndroid
|
Sorry, something went wrong.
|
Updating the commit message; otherwise unchanged. |
Sorry, something went wrong.
|
Rebased on an updated target; otherwise unchanged. |
Sorry, something went wrong.
Commit defines a LocalSentrySpan that lets Sentry and host apps deliver ISpan instances throughout composable subtrees. The delivered span can be used to parent any spans the receiving subtree produces, thereby freeing child composables from having to care about the ISpan hierarchies constructed by their ancestors. Commit also contains an internal UnsetSentrySpan + bootstrapping system that lets existing Sentry composable infrastructure provide its own ISpan in situations where the environment doesn't set a LocalSentrySpan. Commit updates SentryTraced to use both LocalSentrySpan and the bootstrapping system. Co-authored-by: Tabish Ahmad <tabishahmad1@gmail.com>
There was a problem hiding this comment.
Nice one!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
📜 Description
Defines a LocalSentrySpan that lets Sentry and host apps deliver ISpan instances throughout composable subtrees. The delivered span can then be used to parent any spans the receiving subtree produces.
PR also introduces an internal UnsetSentrySpan + bootstrapping system that lets existing Sentry composable infrastructure provide its own ISpan in situations where the environment doesn't set a LocalSentrySpan.
SentryTraced has been updated to use both LocalSentrySpan and the bootstrapping system.
💡 Motivation and Context
Frees child composables from having to care about the ISpan hierarchies constructed by their ancestors, which is an anti-pattern.
This PR is an alternative to the IScopes-based approach proposed in #5838.
💚 How did you test it?
Unit tests + manual testing via the relevant Android sample apps.
📝 Checklist
🔮 Next steps