From 06840be22903a890f69f0a31e632c0365af1edb7 Mon Sep 17 00:00:00 2001 From: Michael Grosse Huelsewiesche Date: Thu, 14 Nov 2024 16:49:47 -0500 Subject: [PATCH] Fixing flush timer. Adjusting initial sample rate, but it is always overriden by settings (#244) --- .../main/java/com/segment/analytics/kotlin/core/Telemetry.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/segment/analytics/kotlin/core/Telemetry.kt b/core/src/main/java/com/segment/analytics/kotlin/core/Telemetry.kt index 3555c56b..23d06146 100644 --- a/core/src/main/java/com/segment/analytics/kotlin/core/Telemetry.kt +++ b/core/src/main/java/com/segment/analytics/kotlin/core/Telemetry.kt @@ -75,8 +75,8 @@ object Telemetry: Subscriber { var host: String = Constants.DEFAULT_API_HOST // 1.0 is 100%, will get set by Segment setting before start() - var sampleRate: Double = 1.0 - var flushTimer: Int = 3 * 1000 // 30s + var sampleRate: Double = 0.1 + var flushTimer: Int = 30 * 1000 // 30s var httpClient: HTTPClient = HTTPClient("", MetricsRequestFactory()) var sendWriteKeyOnError: Boolean = true var sendErrorLogData: Boolean = false