Skip to content

Commit f572439

Browse files
RUM-9958: pr fixes
1 parent c500f7d commit f572439

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

sample/benchmark/src/main/java/com/datadog/benchmark/sample/DatadogFeaturesInitializer.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ internal class DatadogFeaturesInitializer @Inject constructor(
9595
}
9696

9797
private fun needToEnableRum(config: BenchmarkConfig): Boolean {
98-
return when (isInstrumentedRun(config)) {
99-
true -> isSessionReplayScenario(config) || isRumScenario(config)
100-
false -> false
98+
return if (isInstrumentedRun(config)) {
99+
isSessionReplayScenario(config) || isRumScenario(config)
100+
} else {
101+
false
101102
}
102103
}
103104

sample/benchmark/src/main/java/com/datadog/benchmark/sample/di/activity/DatadogActivityModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ private fun createDatadogConfiguration(): Configuration {
106106
configBuilder.setBackpressureStrategy(
107107
BackPressureStrategy(
108108
CAPACITY_BACK_PRESSURE_STRATEGY,
109-
{ Log.w("BackPressure", "THRESHOLD REACHED!") },
110-
{ Log.e("BackPressure", "ITEM DROPPED $it!") },
109+
{ Log.w("BackPressure", "Threshold reached") },
110+
{ Log.e("BackPressure", "Item dropped: $it") },
111111
BackPressureMitigation.IGNORE_NEWEST
112112
)
113113
)

0 commit comments

Comments
 (0)