Add basic tracking cycle metrics

Description

In Scope

  • Add metrics to determine

    • when tracking cycle starts

    • when tracking cycle end

    • how long tracking cycle takes

    • number of requests polled in cycle

    • number of not polled in cycle (filtered out)

  • Expose metrics in … /metrics or logs TBC

is blocked by

Activity

Show:

Jag Goraya July 16, 2024 at 4:03 PM

Reverted in https://openlibraryfoundation.atlassian.net/wiki/spaces/DCB/pages/3022290948/

On Hold pending reintroduction of ingest changes.

Jag Goraya June 26, 2024 at 1:47 PM

From

Added some logging and moved a statement to when it actually starts (subscription) rather than when it's created. I see this ATM locally...

- DCB Tracking Service run started [2024-06-26T13:29:37.566Z] - Obtained lock[tracking-service] - TRACKING Tracking completed for 0 total Requests - DCB Tracking Service run ended [2024-06-26T13:29:37.575Z], after [0 h, 0 m, 0 s, 9 ms]

The logged statements are based on the subscription stating and ending (successfully or in error) so should give true times.

 

Changes in commit 904ebddd.

Details

Assignee

Reporter

Components

Target Version

Fix versions

Sprint

Priority

Created June 25, 2024 at 4:02 PM
Updated September 24, 2024 at 4:41 PM

Flag notifications