Crate background_jobs_metrics

Source
Expand description

Types for collecting stats from background-jobs

Structs§

JobStat
Stats about a particular field
MetricsStorage
A wrapper for any Storage type adding metrics
SetRecorderError
Error returned when trying to install a global recorder when another has already been installed.
Stats
Stats about the background jobs processor
StatsHandle
Handle into the stats store
StatsRecorder
Recorder type for recording background jobs metrics

Functions§

build
Build the stats recorder and fetch the handle.
install
Install the stats recorder into the process