File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
tests/internal/data/opentelemetry Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 12251225 "log_metadata" : {"otlp" :{}},
12261226 "log_body" : {"test_key" : " " , "normal_key" : " normal_value" }
12271227 }
1228+ },
1229+ "issue_10672_empty_map_as_null" : {
1230+ "input" : {
1231+ "resourceLogs" : [{
1232+ "scopeLogs" : [{
1233+ "logRecords" : [{
1234+ "timeUnixNano" : " 1722904465173450100" ,
1235+ "body" : {
1236+ "kvlistValue" : {
1237+ "values" : [
1238+ {"key" : " empty_map_key" , "value" : {}},
1239+ {"key" : " normal_key" , "value" : {"stringValue" : " normal_value" }},
1240+ {"key" : " missing_value_key" }
1241+ ]
1242+ }
1243+ }
1244+ }]
1245+ }]
1246+ }]
1247+ },
1248+ "expected" : {
1249+ "group_metadata" : {"schema" :" otlp" ,"resource_id" :0 ,"scope_id" :0 },
1250+ "group_body" : {"resource" :{}},
1251+ "log_metadata" : {"otlp" :{}},
1252+ "log_body" : {"empty_map_key" : null , "normal_key" : " normal_value" , "missing_value_key" : " " }
1253+ }
12281254 }
12291255}
You can’t perform that action at this time.
0 commit comments