Skip to content

Commit 3eb6466

Browse files
authored
perf(connectivity): Cache network capabilities and status to reduce IPC calls (#4560)
1 parent dfd5da0 commit 3eb6466

File tree

10 files changed

+847
-164
lines changed

10 files changed

+847
-164
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- Session Replay: Use main thread looper to schedule replay capture ([#4542](https://github.com/getsentry/sentry-java/pull/4542))
88

9+
### Fixes
10+
11+
- Cache network capabilities and status to reduce IPC calls ([#4560](https://github.com/getsentry/sentry-java/pull/4560))
12+
913
## 8.18.0
1014

1115
### Features

sentry-android-core/src/main/java/io/sentry/android/core/AndroidOptionsInitializer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import io.sentry.android.core.internal.gestures.AndroidViewGestureTargetLocator;
2929
import io.sentry.android.core.internal.modules.AssetsModulesLoader;
3030
import io.sentry.android.core.internal.util.AndroidConnectionStatusProvider;
31+
import io.sentry.android.core.internal.util.AndroidCurrentDateProvider;
3132
import io.sentry.android.core.internal.util.AndroidThreadChecker;
3233
import io.sentry.android.core.internal.util.SentryFrameMetricsCollector;
3334
import io.sentry.android.core.performance.AppStartMetrics;
@@ -157,7 +158,8 @@ static void initializeIntegrationsAndProcessors(
157158

158159
if (options.getConnectionStatusProvider() instanceof NoOpConnectionStatusProvider) {
159160
options.setConnectionStatusProvider(
160-
new AndroidConnectionStatusProvider(context, options.getLogger(), buildInfoProvider));
161+
new AndroidConnectionStatusProvider(
162+
context, options, buildInfoProvider, AndroidCurrentDateProvider.getInstance()));
161163
}
162164

163165
if (options.getCacheDirPath() != null) {

0 commit comments

Comments
 (0)