File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/kotlin/io/bitdrift/capture/events/performance
test/kotlin/io/bitdrift/capture Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ import io.bitdrift.capture.common.Runtime
3535import io.bitdrift.capture.common.RuntimeConfig
3636import io.bitdrift.capture.common.RuntimeFeature
3737import io.bitdrift.capture.events.IEventListenerLogger
38- import io.bitdrift.capture.events.span.SpanField
3938import io.bitdrift.capture.providers.FieldValue
4039import io.bitdrift.capture.providers.toFieldValue
4140import io.bitdrift.capture.threading.CaptureDispatchers
@@ -202,7 +201,7 @@ internal class JankStatsMonitor(
202201 LogType .UX ,
203202 jankFrameLogDetails.logLevel,
204203 buildMap {
205- put(SpanField . Key . DURATION , toDurationMillis().toString().toFieldValue())
204+ put(DURATION_NAME_KEY , toDurationMillis().toString().toFieldValue())
206205 putAll(this @sendJankFrameData.states.toFields())
207206 },
208207 ) { jankFrameLogDetails.message }
@@ -293,5 +292,6 @@ internal class JankStatsMonitor(
293292 private const val DROPPED_FRAME_MESSAGE_ID = " DroppedFrame"
294293 private const val ANR_MESSAGE_ID = " ANR"
295294 private const val SCREEN_NAME_KEY = " _screen_name"
295+ private const val DURATION_NAME_KEY = " _frame_duration_ms"
296296 }
297297}
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ class JankStatsMonitorTest {
291291 any(),
292292 eq(
293293 mapOf (
294- " _duration_ms " to jankDurationInMilli.toString().toFieldValue(),
294+ " _frame_duration_ms " to jankDurationInMilli.toString().toFieldValue(),
295295 " _screen_name" to screenName.toFieldValue(),
296296 ),
297297 ),
@@ -325,7 +325,7 @@ class JankStatsMonitorTest {
325325 verify(logger).log(
326326 eq(LogType .UX ),
327327 eq(expectedLogLevel),
328- eq(mapOf (" _duration_ms " to jankDurationInMilli.toString().toFieldValue())),
328+ eq(mapOf (" _frame_duration_ms " to jankDurationInMilli.toString().toFieldValue())),
329329 eq(null ),
330330 eq(null ),
331331 eq(false ),
You can’t perform that action at this time.
0 commit comments