Skip to content

Commit

Permalink
Do not use magic numbers in InternalLogger API
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusc83 committed Sep 19, 2024
1 parent 529e791 commit ab17e2a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,13 @@ interface InternalLogger {
@InternalApi
fun logApiUsage(
apiUsageEvent: InternalTelemetryEvent.ApiUsage,
samplingRate: Float = 15f
samplingRate: Float = DEFAULT_API_USAGE_TELEMETRY_SAMPLING_RATE
)

companion object {

private const val DEFAULT_API_USAGE_TELEMETRY_SAMPLING_RATE = 15f

/**
* Logger for the cases when SDK instance is not yet available. Try to use the logger
* provided by [FeatureSdkCore.internalLogger] instead if possible.
Expand Down

0 comments on commit ab17e2a

Please sign in to comment.