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 {
2929 ///
3030 /// Optional. The high 64 bits of a referenced trace id.
3131 #[ prost( uint64, tag = "2" ) ]
32+ #[ serde( default ) ]
3233 pub trace_id_high : u64 ,
3334 /// @gotags: json:"span_id" msg:"span_id"
3435 ///
@@ -39,6 +40,7 @@ pub struct SpanLink {
3940 ///
4041 /// Optional. Simple mapping of keys to string values.
4142 #[ prost( map = "string, string" , tag = "4" ) ]
43+ #[ serde( default ) ]
4244 pub attributes : :: std:: collections:: HashMap <
4345 :: prost:: alloc:: string:: String ,
4446 :: prost:: alloc:: string:: String ,
@@ -47,11 +49,13 @@ pub struct SpanLink {
4749 ///
4850 /// Optional. W3C tracestate.
4951 #[ prost( string, tag = "5" ) ]
52+ #[ serde( default ) ]
5053 pub tracestate : :: prost:: alloc:: string:: String ,
5154 /// @gotags: msg:"flags,omitempty"
5255 ///
5356 /// Optional. W3C trace flags. If set, the high bit (bit 31) must be set.
5457 #[ prost( uint32, tag = "6" ) ]
58+ #[ serde( default ) ]
5559 pub flags : u32 ,
5660}
5761#[ derive( Deserialize , Serialize ) ]
You can’t perform that action at this time.
0 commit comments