You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 013fb62
Browse filesBrowse the repository at this point in the historyBrowse files
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>
# Conflicts:
# CHANGELOG.md
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Changelog
2
2
3
+
## Unreleased
4
+
5
+
### Features
6
+
7
+
- Add `LocalSentrySpan` to `sentry-compose` so apps can provide a parent `ISpan` to a composable subtree and have nested `SentryTraced` spans attach to it ([#6112]https://github.com/getsentry/sentry-java/pull/6112)
Copy file name to clipboardExpand all lines: sentry-compose/api/android/sentry-compose.api
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@ public final class io/sentry/compose/BuildConfig {
6
6
public fun <init> ()V
7
7
}
8
8
9
+
public final class io/sentry/compose/LocalSentrySpanKt {
10
+
public static final fun getLocalSentrySpan ()Landroidx/compose/runtime/ProvidableCompositionLocal;
11
+
}
12
+
9
13
public final class io/sentry/compose/SentryComposeHelperKt {
10
14
public static final fun boundsInWindow (Landroidx/compose/ui/layout/LayoutCoordinates;Landroidx/compose/ui/layout/LayoutCoordinates;)Landroidx/compose/ui/geometry/Rect;
0 commit comments