@@ -38,6 +38,7 @@ public void SerializeObject_AllPropertiesSetToNonDefault_SerializesValidObject()
38
38
SpanId = SpanId . Parse ( "2000000000000000" ) ,
39
39
TraceId = SentryId . Parse ( "75302ac48a024bde9a3b3734a82e36c8" )
40
40
} ;
41
+ trace . SetData ( "route" , "home" ) ;
41
42
42
43
// Act
43
44
var actual = trace . ToJsonString ( _testOutputLogger , indented : true ) ;
@@ -52,7 +53,10 @@ public void SerializeObject_AllPropertiesSetToNonDefault_SerializesValidObject()
52
53
"trace_id": "75302ac48a024bde9a3b3734a82e36c8",
53
54
"op": "op123",
54
55
"origin": "auto.abc.def.ghi",
55
- "status": "aborted"
56
+ "status": "aborted",
57
+ "": {
58
+ "route": "home"
59
+ }
56
60
}
57
61
""" ,
58
62
actual ) ;
@@ -72,6 +76,7 @@ public void Clone_CopyValues()
72
76
SpanId = SpanId . Parse ( "2000000000000000" ) ,
73
77
TraceId = SentryId . Parse ( "75302ac48a024bde9a3b3734a82e36c8" )
74
78
} ;
79
+ trace . SetData ( "previous_route" , "home" ) ;
75
80
76
81
// Act
77
82
var clone = trace . Clone ( ) ;
@@ -84,6 +89,7 @@ public void Clone_CopyValues()
84
89
Assert . Equal ( trace . ParentSpanId , clone . ParentSpanId ) ;
85
90
Assert . Equal ( trace . SpanId , clone . SpanId ) ;
86
91
Assert . Equal ( trace . TraceId , clone . TraceId ) ;
92
+ Assert . Equal ( trace . Data , clone . Data ) ;
87
93
}
88
94
89
95
[ Fact ]
0 commit comments