Skip to content

Track composable functions with @SentryTraceable annotation #2071

Open
@romtsn

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

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions