@@ -320,13 +320,13 @@ mod tests {
320
320
// Meters are identical except for scope attributes, but scope attributes are not an identifying property.
321
321
// Hence there should be a single metric stream output for this test.
322
322
let meter1 = meter_provider. versioned_meter (
323
- "test.meter1 " ,
323
+ "test.meter " ,
324
324
Some ( "v0.1.0" ) ,
325
325
Some ( "schema_url" ) ,
326
326
Some ( vec ! [ KeyValue :: new( "key" , "value1" ) ] ) ,
327
327
) ;
328
328
let meter2 = meter_provider. versioned_meter (
329
- "test.meter1 " ,
329
+ "test.meter " ,
330
330
Some ( "v0.1.0" ) ,
331
331
Some ( "schema_url" ) ,
332
332
Some ( vec ! [ KeyValue :: new( "key" , "value2" ) ] ) ,
@@ -364,11 +364,12 @@ mod tests {
364
364
) ;
365
365
366
366
let scope = & resource_metrics[ 0 ] . scope_metrics [ 0 ] . scope ;
367
- assert_eq ! ( scope. name, "test.meter1 " ) ;
367
+ assert_eq ! ( scope. name, "test.meter " ) ;
368
368
assert_eq ! ( scope. version, Some ( Cow :: Borrowed ( "v0.1.0" ) ) ) ;
369
369
assert_eq ! ( scope. schema_url, Some ( Cow :: Borrowed ( "schema_url" ) ) ) ;
370
370
371
- // Should we validate this, as this is a user error
371
+ // This is validating current behavior, but it is not guaranteed to be the case in the future,
372
+ // as this is a user error and SDK reserves right to change this behavior.
372
373
assert_eq ! ( scope. attributes, vec![ KeyValue :: new( "key" , "value1" ) ] ) ;
373
374
374
375
let metric = & resource_metrics[ 0 ] . scope_metrics [ 0 ] . metrics [ 0 ] ;
0 commit comments