feature: Prometheus Metrics, Supervisor Dashboard, and Promotion Retry Job
This commit is contained in:
@@ -138,6 +138,10 @@ public class VerificationService : IVerificationService
|
||||
|
||||
await _db.SaveChangesAsync();
|
||||
|
||||
DiagnosticsMetrics.RejectionTotal
|
||||
.WithLabels("verification_failed")
|
||||
.Inc();
|
||||
|
||||
_logger.LogInformation(
|
||||
"Batch {BatchId} verification failed by {VerifierUserId}, rejected",
|
||||
batchId, verifierUserId);
|
||||
@@ -206,6 +210,13 @@ public class VerificationService : IVerificationService
|
||||
|
||||
await _db.SaveChangesAsync();
|
||||
|
||||
var category = previousStatus == BatchStatus.AwaitingClinicalApproval
|
||||
? "clinical_rejected"
|
||||
: "verification_failed";
|
||||
DiagnosticsMetrics.RejectionTotal
|
||||
.WithLabels(category)
|
||||
.Inc();
|
||||
|
||||
_logger.LogInformation(
|
||||
"Batch {BatchId} rejected by {ActorUserId} from {PreviousStatus}: {Reason}",
|
||||
batchId, actorUserId, previousStatus.ToDbString(), request.Reason);
|
||||
|
||||
Reference in New Issue
Block a user