Skip to content

Commit

Permalink
Increment metrics only for valid packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin5605 committed Oct 9, 2024
1 parent b513f7c commit c0c840e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mainframe/endpoints/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c0c840e

Please sign in to comment.