From c2493776ad94ff4e954b6b255d13595ce5a2a323 Mon Sep 17 00:00:00 2001 From: Robin5605 Date: Wed, 9 Oct 2024 18:44:48 -0500 Subject: [PATCH] Increment metrics only for valid packages --- src/mainframe/endpoints/package.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainframe/endpoints/package.py b/src/mainframe/endpoints/package.py index a428f2c..de58222 100644 --- a/src/mainframe/endpoints/package.py +++ b/src/mainframe/endpoints/package.py @@ -233,8 +233,8 @@ def batch_queue_package( session.add(scan) - packages_ingested.inc(len(packages)) - packages_in_queue.inc(len(packages)) + packages_ingested.inc() + packages_in_queue.inc() @router.post(