@@ -245,11 +245,12 @@ impl AccumulatedSamples {
245245 } ,
246246 attributes,
247247 entity_associations : vec ! [ ] ,
248+ requirement_level : None ,
248249 common : inferred_common_fields ( ) ,
249250 }
250251 } )
251252 . collect :: < Vec < _ > > ( ) ;
252- spans. sort_by ( |left, right | left. r#type . to_string ( ) . cmp ( & right . r#type . to_string ( ) ) ) ;
253+ spans. sort_by_key ( |left| left. r#type . to_string ( ) ) ;
253254
254255 let mut metrics = self
255256 . metrics
@@ -272,11 +273,12 @@ impl AccumulatedSamples {
272273 unit : metric. unit . clone ( ) ,
273274 attributes,
274275 entity_associations : vec ! [ ] ,
276+ requirement_level : None ,
275277 common : inferred_common_fields ( ) ,
276278 }
277279 } )
278280 . collect :: < Vec < _ > > ( ) ;
279- metrics. sort_by ( |left, right | left. name . to_string ( ) . cmp ( & right . name . to_string ( ) ) ) ;
281+ metrics. sort_by_key ( |left| left. name . to_string ( ) ) ;
280282
281283 let mut merged_events: HashMap < String , Vec < String > > = self
282284 . events
@@ -311,11 +313,12 @@ impl AccumulatedSamples {
311313 . map ( |attribute_name| attribute_or_group_ref ( & attribute_name) )
312314 . collect ( ) ,
313315 entity_associations : vec ! [ ] ,
316+ requirement_level : None ,
314317 common : inferred_common_fields ( ) ,
315318 }
316319 } )
317320 . collect :: < Vec < _ > > ( ) ;
318- events. sort_by ( |left, right | left. name . to_string ( ) . cmp ( & right . name . to_string ( ) ) ) ;
321+ events. sort_by_key ( |left| left. name . to_string ( ) ) ;
319322
320323 let mut attributes = attribute_defs. into_values ( ) . collect :: < Vec < _ > > ( ) ;
321324 attributes. sort_by ( |left, right| left. key . cmp ( & right. key ) ) ;
0 commit comments