@@ -425,8 +425,8 @@ public async Task Successful_request_records_success_metrics()
425425
426426 _mockMetrics . Verify ( m => m . RecordRequest ( "http_request" , "success" ) , Times . Once ) ;
427427 _mockMetrics . Verify ( m => m . RecordDuration ( "http_request" , It . IsAny < double > ( ) ) , Times . Once ) ;
428- _mockMetrics . Verify ( m => m . RecordCount ( "http_requests" , 1 ,
429- It . Is < ( string Key , string Value ) [ ] > ( tags =>
428+ _mockMetrics . Verify ( m => m . RecordCount ( "http_requests" , 1 ,
429+ It . Is < ( string Key , string Value ) [ ] > ( tags =>
430430 tags . Any ( t => t . Key == "method" && t . Value == "GET" ) &&
431431 tags . Any ( t => t . Key == "endpoint" && t . Value == "/api/test" ) &&
432432 tags . Any ( t => t . Key == "status" && t . Value == "success" ) ) ) , Times . Once ) ;
@@ -447,19 +447,19 @@ public async Task Exception_records_error_metrics()
447447
448448 _mockMetrics . Verify ( m => m . RecordRequest ( "http_request" , "error" ) , Times . Once ) ;
449449 _mockMetrics . Verify ( m => m . RecordDuration ( "http_request" , It . IsAny < double > ( ) ) , Times . Once ) ;
450- _mockMetrics . Verify ( m => m . RecordCount ( "http_requests" , 1 ,
451- It . Is < ( string Key , string Value ) [ ] > ( tags =>
450+ _mockMetrics . Verify ( m => m . RecordCount ( "http_requests" , 1 ,
451+ It . Is < ( string Key , string Value ) [ ] > ( tags =>
452452 tags . Any ( t => t . Key == "status" && t . Value == "error" ) &&
453453 tags . Any ( t => t . Key == "status_code" && t . Value == "404" ) ) ) , Times . Once ) ;
454- _mockMetrics . Verify ( m => m . RecordCount ( "http_errors" , 1 ,
455- It . Is < ( string Key , string Value ) [ ] > ( tags =>
454+ _mockMetrics . Verify ( m => m . RecordCount ( "http_errors" , 1 ,
455+ It . Is < ( string Key , string Value ) [ ] > ( tags =>
456456 tags . Any ( t => t . Key == "error_type" && t . Value == "not_found" ) &&
457457 tags . Any ( t => t . Key == "exception_type" && t . Value == "NotFoundException" ) ) ) , Times . Once ) ;
458458 }
459459
460460 [ Theory ]
461461 [ InlineData ( typeof ( FluentValidation . ValidationException ) , "validation_error" , 422 ) ]
462- [ InlineData ( typeof ( DomainException ) , "domain_error" , 400 ) ]
462+ [ InlineData ( typeof ( DomainException ) , "domain_error" , 400 ) ]
463463 [ InlineData ( typeof ( InvalidOperationException ) , "internal_error" , 500 ) ]
464464 public async Task Different_exception_types_record_appropriate_error_metrics ( Type exceptionType , string expectedErrorType , int expectedStatusCode )
465465 {
@@ -481,8 +481,8 @@ public async Task Different_exception_types_record_appropriate_error_metrics(Typ
481481 // Assert
482482 context . Response . StatusCode . Should ( ) . Be ( expectedStatusCode ) ;
483483
484- _mockMetrics . Verify ( m => m . RecordCount ( "http_errors" , 1 ,
485- It . Is < ( string Key , string Value ) [ ] > ( tags =>
484+ _mockMetrics . Verify ( m => m . RecordCount ( "http_errors" , 1 ,
485+ It . Is < ( string Key , string Value ) [ ] > ( tags =>
486486 tags . Any ( t => t . Key == "error_type" && t . Value == expectedErrorType ) &&
487487 tags . Any ( t => t . Key == "exception_type" && t . Value == exceptionType . Name ) &&
488488 tags . Any ( t => t . Key == "status_code" && t . Value == expectedStatusCode . ToString ( ) ) ) ) , Times . Once ) ;
0 commit comments