getsentry / getsentry/sentry-java

Track composable functions with @SentryTraceable annotation

Offen
#2,071 2 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
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

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.