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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make RxJava 2 instrumentation Android-friendly #7894

Closed
bherbst opened this issue Feb 23, 2023 · 0 comments · Fixed by #7895
Closed

Make RxJava 2 instrumentation Android-friendly #7894

bherbst opened this issue Feb 23, 2023 · 0 comments · Fixed by #7895
Labels
enhancement New feature or request

Comments

@bherbst
Copy link
Contributor

bherbst commented Feb 23, 2023

The RxJava2 instrumentation uses MethodHandle, which was introduced in Java 8. This makes the instrumentation incompatible with Android applications that support Android API versions older than API 26 (Android 8.0).

Because RxJava is quite popular within the Android community, being able to use the instrumentation on Android is highly desirable.

@bherbst bherbst added the enhancement New feature or request label Feb 23, 2023
laurit pushed a commit that referenced this issue Feb 24, 2023
Resolves #7894

Replace `MethodHandle` with older `java.lang.reflect.Field`, which is
supported on older Java versions.

Also enables animal sniffer for the RxJava2 instrumentation to prevent
regression.

---------

Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant