Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto-instrumentation for compose navigation #392

Merged
merged 26 commits into from Nov 8, 2022

Conversation

markushi
Copy link
Member

@markushi markushi commented Oct 24, 2022

馃摐 Description

Modifies the androidx rememberNavController method to automatically report navigation events to sentry.

馃挕 Motivation and Context

Related issue: getsentry/sentry-java#2319
Requires getsentry/sentry-java#2320 to be merged and released first.

馃挌 How did you test it?

For now just manually.

馃摑 Checklist

馃敭 Next steps

  • Discuss at which granularity we want to instrument Jetpack Compose, should it be just a single "Instrument all Compose" feature or many individual ones?
  • Convert example code to Jetpack Compose

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, great job 馃憤 Left some comments

Also, some tests are failing, probably needs adaptation after changing to a single ChainedInstrumentable.

Plus, we should also test auto-install stuff (unit + integration), you can check https://github.com/getsentry/sentry-android-gradle-plugin/blob/main/plugin-build/src/test/kotlin/io/sentry/android/gradle/SentryPluginAutoInstallTest.kt for the integration part

CHANGELOG.md Show resolved Hide resolved
Replace testRuntimeOnly with testImplementationAar as otherwise the
Gradle sync fails with the following error:
- Incompatible because this component declares an API of a component,
with the library elements 'aar' and the consumer needed a runtime of a
component, packaged as a jar
E.g. the compose integration requires both a specific androidx runtime
version as well as sentry SDK version
@markushi markushi merged commit ec6cf61 into main Nov 8, 2022
@markushi markushi deleted the feat/compose-navigation-instrumentation branch November 8, 2022 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants