@@ -706,7 +706,7 @@ describe('consola integration', () => {
706706 {
707707 timestamp : expect . any ( Number ) ,
708708 level : 'info' ,
709- body : 'Mixed data' ,
709+ body : 'Mixed data a-simple-string ' ,
710710 severity_number : expect . any ( Number ) ,
711711 trace_id : expect . any ( String ) ,
712712 attributes : {
@@ -718,10 +718,14 @@ describe('consola integration', () => {
718718 'server.address' : { value : expect . any ( String ) , type : 'string' } ,
719719 'consola.type' : { value : 'info' , type : 'string' } ,
720720 'consola.level' : { value : 3 , type : 'integer' } ,
721- // Plain object properties are extracted
721+ // Plain object properties extracted
722722 userId : { value : 123 , type : 'integer' } ,
723- // Date is preserved in context
723+ // Nested metadata object normalized (depth 3)
724+ nestedMetadata : { value : '{"id":789,"name":"Jane","source":"api"}' , type : 'string' } ,
725+ // Date preserved as args
724726 'consola.args.0' : { value : '"2023-06-15T12:00:00.000Z"' , type : 'string' } ,
727+ // Map converted to object and stored as args
728+ 'consola.args.1' : { value : '{"key":"value"}' , type : 'string' } ,
725729 } ,
726730 } ,
727731 ] ,
0 commit comments