Skip to content

Track composable functions with @SentryTraceable annotation #2071

Description

@romtsn

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:

    DisposableEffect(Unit) {
        Log.e("SENTRY", "ENTERED COMPOSITION")
        onDispose {
            Log.e("SENTRY", "LEFT COMPOSITION")
        }
    }

Would require bytecode manipulation through SAGP.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions