getsentry / getsentry/sentry-java
Track composable functions with @SentryTraceable annotation
Offen
Android
Improvement
Jetpack Compose
Spans
- Vorherrschende Sprache
- Kotlin
- Sterne
- 1.4k
- Forks
- 478
- Ø Merge
- 2 T. 22 Std.
- Gemergte PRs (30 T.)
- 69
Beschreibung
### Description
Create transactions/spans for `@Composable` functions annotated with `@SentryTraceable`, so we can enrich events that pop up within that composable lifetime. The code to measure that could roughly look like this:
```kotlin
DisposableEffect(Unit) {
Log.e("SENTRY", "ENTERED COMPOSITION")
onDispose {
Log.e("SENTRY", "LEFT COMPOSITION")
}
}
```
Would require bytecode manipulation through SAGP.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.