Skip to content

Commit 7f994a7

Browse files
authored
Mention removal of AndroidX Core (#4150)
1 parent 31b2ea2 commit 7f994a7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/platforms/android/common/performance/instrumentation/automatic-instrumentation.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,21 @@ Unresponsive UI and animation hitches annoy users and degrade the user experienc
158158

159159
Slow and frozen frames are Mobile Vitals, which you can learn about in the [full documentation](/product/performance/mobile-vitals).
160160

161-
### OkHttp library Instrumentation
161+
### AndroidX Support
162+
163+
Sentry uses the AndroidX.Core library for detecting [slow and frozen frames](#slow-and-frozen-frames). This is necessary to produce accurate results across all Android OS versions.
164+
165+
We check for availability at runtime, so if you're not using AndroidX.Core, you can remove it from Sentry's transitive dependencies.
166+
167+
```Groovy
168+
implementation ('io.sentry:sentry-android:{{ packages.version('sentry.java.android', '4.2.0') }}') {
169+
exclude group: 'androidx.core', module: 'core'
170+
}
171+
```
172+
173+
Note that by removing this transitive dependency, slow and frozen frames won't be reported.
174+
175+
### OkHttp Library Instrumentation
162176

163177
The OkHttp's instrumentation, once added the `SentryOkHttpInterceptor`, starts a span out of the active span bound to the scope for each HTTP Request. The SDK sets the span `operation` to `http.client` and `description` to request `$method and $URL`; for example, `GET https://sentry.io`.
164178

0 commit comments

Comments
 (0)