File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ pub struct SpanLink {
29
29
///
30
30
/// Optional. The high 64 bits of a referenced trace id.
31
31
#[ prost( uint64, tag = "2" ) ]
32
+ #[ serde( default ) ]
32
33
pub trace_id_high : u64 ,
33
34
/// @gotags: json:"span_id" msg:"span_id"
34
35
///
@@ -39,6 +40,7 @@ pub struct SpanLink {
39
40
///
40
41
/// Optional. Simple mapping of keys to string values.
41
42
#[ prost( map = "string, string" , tag = "4" ) ]
43
+ #[ serde( default ) ]
42
44
pub attributes : :: std:: collections:: HashMap <
43
45
:: prost:: alloc:: string:: String ,
44
46
:: prost:: alloc:: string:: String ,
@@ -47,11 +49,13 @@ pub struct SpanLink {
47
49
///
48
50
/// Optional. W3C tracestate.
49
51
#[ prost( string, tag = "5" ) ]
52
+ #[ serde( default ) ]
50
53
pub tracestate : :: prost:: alloc:: string:: String ,
51
54
/// @gotags: msg:"flags,omitempty"
52
55
///
53
56
/// Optional. W3C trace flags. If set, the high bit (bit 31) must be set.
54
57
#[ prost( uint32, tag = "6" ) ]
58
+ #[ serde( default ) ]
55
59
pub flags : u32 ,
56
60
}
57
61
#[ derive( Deserialize , Serialize ) ]
You can’t perform that action at this time.
0 commit comments