Skip to content

Commit

Permalink
Fixing flush timer. Adjusting initial sample rate, but it is always o…
Browse files Browse the repository at this point in the history
…verriden by settings (#244)
  • Loading branch information
MichaelGHSeg authored Nov 14, 2024
1 parent 611c67b commit 06840be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06840be

Please sign in to comment.