You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- No longer disable OpenTelemetry exporters in default Java Agent config ([#2408](https://github.com/getsentry/sentry-java/pull/2408))
8
9
- Fix `ClassNotFoundException` for `io.sentry.spring.SentrySpringServletContainerInitializer` in `sentry-spring-jakarta` ([#2411](https://github.com/getsentry/sentry-java/issues/2411))
Copy file name to clipboardExpand all lines: sentry/src/test/java/io/sentry/JsonSerializerTest.kt
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -520,7 +520,7 @@ class JsonSerializerTest {
520
520
ProfileMeasurement.ID_SCREEN_FRAME_RATES to
521
521
ProfileMeasurement(
522
522
ProfileMeasurement.UNIT_HZ,
523
-
listOf(ProfileMeasurementValue(1, 60.1F))
523
+
listOf(ProfileMeasurementValue(1, 60.1))
524
524
)
525
525
)
526
526
)
@@ -574,8 +574,8 @@ class JsonSerializerTest {
574
574
"unit" to ProfileMeasurement.UNIT_HZ,
575
575
"values" to listOf(
576
576
mapOf(
577
-
"value" to "60.1",
578
-
"elapsed_since_start_ns" to 1
577
+
"value" to 60.1,
578
+
"elapsed_since_start_ns" to "1"
579
579
)
580
580
)
581
581
)
@@ -710,7 +710,7 @@ class JsonSerializerTest {
710
710
val measurementValues =listOf(ProfileMeasurementValue(1, 2), ProfileMeasurementValue(3, 4))
711
711
val profileMeasurement =ProfileMeasurement(ProfileMeasurement.UNIT_NANOSECONDS, measurementValues)
712
712
val actual = serializeToString(profileMeasurement)
713
-
val expected ="{\"unit\":\"nanosecond\",\"values\":[{\"value\":\"2\",\"elapsed_since_start_ns\":1},{\"value\":\"4\",\"elapsed_since_start_ns\":3}]}"
713
+
val expected ="{\"unit\":\"nanosecond\",\"values\":[{\"value\":2.0,\"elapsed_since_start_ns\":\"1\"},{\"value\":4.0,\"elapsed_since_start_ns\":\"3\"}]}"
714
714
assertEquals(expected, actual)
715
715
}
716
716
@@ -734,7 +734,7 @@ class JsonSerializerTest {
734
734
fun`serializes profileMeasurementValue`() {
735
735
val profileMeasurementValue =ProfileMeasurementValue(1, 2)
736
736
val actual = serializeToString(profileMeasurementValue)
737
-
val expected ="{\"value\":\"2\",\"elapsed_since_start_ns\":1}"
737
+
val expected ="{\"value\":2.0,\"elapsed_since_start_ns\":\"1\"}"
0 commit comments