@@ -61,10 +61,11 @@ mod json_serde {
6161 dropped_attributes_count: 0 ,
6262 } ) ,
6363 spans: vec![ Span {
64- trace_id: hex:: decode( "5b8efff798038103d269b633813fc60c" ) . unwrap( ) ,
65- span_id: hex:: decode( "eee19b7ec3c1b174" ) . unwrap( ) ,
64+ trace_id: const_hex:: decode( "5b8efff798038103d269b633813fc60c" )
65+ . unwrap( ) ,
66+ span_id: const_hex:: decode( "eee19b7ec3c1b174" ) . unwrap( ) ,
6667 trace_state: String :: new( ) ,
67- parent_span_id: hex :: decode( "eee19b7ec3c1b173" ) . unwrap( ) ,
68+ parent_span_id: const_hex :: decode( "eee19b7ec3c1b173" ) . unwrap( ) ,
6869 flags: 0 ,
6970 name: String :: from( "I'm a server span" ) ,
7071 kind: 2 ,
@@ -267,10 +268,11 @@ mod json_serde {
267268 dropped_attributes_count: 1 ,
268269 } ) ,
269270 spans: vec![ Span {
270- trace_id: hex:: decode( "5b8efff798038103d269b633813fc60c" ) . unwrap( ) ,
271- span_id: hex:: decode( "eee19b7ec3c1b174" ) . unwrap( ) ,
271+ trace_id: const_hex:: decode( "5b8efff798038103d269b633813fc60c" )
272+ . unwrap( ) ,
273+ span_id: const_hex:: decode( "eee19b7ec3c1b174" ) . unwrap( ) ,
272274 trace_state: String :: from( "browser=firefox,os=linux" ) ,
273- parent_span_id: hex :: decode( "eee19b7ec3c1b173" ) . unwrap( ) ,
275+ parent_span_id: const_hex :: decode( "eee19b7ec3c1b173" ) . unwrap( ) ,
274276 flags: 1 ,
275277 name: String :: from( "I'm a server span" ) ,
276278 kind: 2 ,
@@ -308,9 +310,9 @@ mod json_serde {
308310 } ] ,
309311 dropped_events_count: 1 ,
310312 links: vec![ Link {
311- trace_id: hex :: decode( "5b8efff798038103d269b633813fc60b" )
313+ trace_id: const_hex :: decode( "5b8efff798038103d269b633813fc60b" )
312314 . unwrap( ) ,
313- span_id: hex :: decode( "eee19b7ec3c1b172" ) . unwrap( ) ,
315+ span_id: const_hex :: decode( "eee19b7ec3c1b172" ) . unwrap( ) ,
314316 trace_state: String :: from( "food=pizza,color=red" ) ,
315317 attributes: vec![ KeyValue {
316318 key: String :: from( "my.link.attr" ) ,
@@ -1272,8 +1274,9 @@ mod json_serde {
12721274 ] ,
12731275 dropped_attributes_count: 0 ,
12741276 flags: 0 ,
1275- trace_id: hex:: decode( "5b8efff798038103d269b633813fc60c" ) . unwrap( ) ,
1276- span_id: hex:: decode( "eee19b7ec3c1b174" ) . unwrap( ) ,
1277+ trace_id: const_hex:: decode( "5b8efff798038103d269b633813fc60c" )
1278+ . unwrap( ) ,
1279+ span_id: const_hex:: decode( "eee19b7ec3c1b174" ) . unwrap( ) ,
12771280 } ] ,
12781281 schema_url: String :: new( ) ,
12791282 } ] ,
0 commit comments