@@ -32,7 +32,11 @@ class SentryLogsSerializationTest {
3232 " sentry.sdk.name" to SentryLogEventAttributeValue (" string" , " sentry.java.spring-boot.jakarta" ),
3333 " sentry.environment" to SentryLogEventAttributeValue (" string" , " production" ),
3434 " sentry.sdk.version" to SentryLogEventAttributeValue (" string" , " 8.11.1" ),
35- " sentry.trace.parent_span_id" to SentryLogEventAttributeValue (" string" , " f28b86350e534671" )
35+ " sentry.trace.parent_span_id" to SentryLogEventAttributeValue (" string" , " f28b86350e534671" ),
36+ " custom.boolean" to SentryLogEventAttributeValue (" boolean" , true ),
37+ " custom.double" to SentryLogEventAttributeValue (" double" , 11.12 .toDouble()),
38+ " custom.point" to SentryLogEventAttributeValue (" string" , Point (20 , 30 )),
39+ " custom.integer" to SentryLogEventAttributeValue (" integer" , 10 )
3640 )
3741 it.severityNumber = 10
3842 }
@@ -75,4 +79,12 @@ class SentryLogsSerializationTest {
7579 val reader = JsonObjectReader (StringReader (json))
7680 return SentryLogEvents .Deserializer ().deserialize(reader, fixture.logger)
7781 }
82+
83+ companion object {
84+ data class Point (val x : Int , val y : Int ) {
85+ override fun toString (): String {
86+ return " Point{x:$x ,y:$y }-Hello"
87+ }
88+ }
89+ }
7890}
0 commit comments