@@ -95,16 +95,16 @@ mod tests {
9595 vec ! [
9696 // Context with sampled
9797 ( SpanContext :: new(
98- TraceId :: from_u128 ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) ,
99- SpanId :: from_u64 ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: SAMPLED , true , TraceState :: default ( ) ) , [
98+ TraceId :: from ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) ,
99+ SpanId :: from ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: SAMPLED , true , TraceState :: default ( ) ) , [
100100 0x00 , 0x00 , 0x4b , 0xf9 , 0x2f , 0x35 , 0x77 , 0xb3 , 0x4d , 0xa6 , 0xa3 , 0xce , 0x92 , 0x9d , 0x0e , 0x0e , 0x47 , 0x36 ,
101101 0x01 , 0x00 , 0xf0 , 0x67 , 0xaa , 0x0b , 0xa9 , 0x02 , 0xb7 ,
102102 0x02 , 0x01 ,
103103 ] ) ,
104104 // Context without sampled
105105 ( SpanContext :: new(
106- TraceId :: from_u128 ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) ,
107- SpanId :: from_u64 ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: default ( ) , true , TraceState :: default ( ) ) , [
106+ TraceId :: from ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) ,
107+ SpanId :: from ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: default ( ) , true , TraceState :: default ( ) ) , [
108108 0x00 , 0x00 , 0x4b , 0xf9 , 0x2f , 0x35 , 0x77 , 0xb3 , 0x4d , 0xa6 , 0xa3 , 0xce , 0x92 , 0x9d , 0x0e , 0x0e , 0x47 , 0x36 ,
109109 0x01 , 0x00 , 0xf0 , 0x67 , 0xaa , 0x0b , 0xa9 , 0x02 , 0xb7 ,
110110 0x02 , 0x00 ,
@@ -118,19 +118,19 @@ mod tests {
118118 fn from_bytes_data ( ) -> Vec < ( SpanContext , Vec < u8 > ) > {
119119 vec ! [
120120 // Future version of the proto
121- ( SpanContext :: new( TraceId :: from_u128 ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) , SpanId :: from_u64 ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: SAMPLED , true , TraceState :: default ( ) ) , vec![
121+ ( SpanContext :: new( TraceId :: from ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) , SpanId :: from ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: SAMPLED , true , TraceState :: default ( ) ) , vec![
122122 0x02 , 0x00 , 0x4b , 0xf9 , 0x2f , 0x35 , 0x77 , 0xb3 , 0x4d , 0xa6 , 0xa3 , 0xce , 0x92 , 0x9d , 0x0e , 0x0e , 0x47 , 0x36 ,
123123 0x01 , 0x00 , 0xf0 , 0x67 , 0xaa , 0x0b , 0xa9 , 0x02 , 0xb7 ,
124124 0x02 , 0x01 ,
125125 ] ) ,
126126 // current version with sampled
127- ( SpanContext :: new( TraceId :: from_u128 ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) , SpanId :: from_u64 ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: SAMPLED , true , TraceState :: default ( ) ) , vec![
127+ ( SpanContext :: new( TraceId :: from ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) , SpanId :: from ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: SAMPLED , true , TraceState :: default ( ) ) , vec![
128128 0x02 , 0x00 , 0x4b , 0xf9 , 0x2f , 0x35 , 0x77 , 0xb3 , 0x4d , 0xa6 , 0xa3 , 0xce , 0x92 , 0x9d , 0x0e , 0x0e , 0x47 , 0x36 ,
129129 0x01 , 0x00 , 0xf0 , 0x67 , 0xaa , 0x0b , 0xa9 , 0x02 , 0xb7 ,
130130 0x02 , 0x01 ,
131131 ] ) ,
132132 // valid context without option
133- ( SpanContext :: new( TraceId :: from_u128 ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) , SpanId :: from_u64 ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: default ( ) , true , TraceState :: default ( ) ) , vec![
133+ ( SpanContext :: new( TraceId :: from ( 0x4bf9_2f35_77b3_4da6_a3ce_929d_0e0e_4736 ) , SpanId :: from ( 0x00f0_67aa_0ba9_02b7 ) , TraceFlags :: default ( ) , true , TraceState :: default ( ) ) , vec![
134134 0x00 , 0x00 , 0x4b , 0xf9 , 0x2f , 0x35 , 0x77 , 0xb3 , 0x4d , 0xa6 , 0xa3 , 0xce , 0x92 , 0x9d , 0x0e , 0x0e , 0x47 , 0x36 ,
135135 0x01 , 0x00 , 0xf0 , 0x67 , 0xaa , 0x0b , 0xa9 , 0x02 , 0xb7 ,
136136 ] ) ,
0 commit comments