Table of Contents

Method RecordQueueDepth

Namespace
MailFathom.Infrastructure.Observability
Assembly
MailFathom.Infrastructure.dll

RecordQueueDepth(IReadOnlyList<JobQueueDepthReading>)

Publishes what the worker last measured the queue's depth to be.

public void RecordQueueDepth(IReadOnlyList<JobQueueDepthReading> readings)

Parameters

readings IReadOnlyList<JobQueueDepthReading>

One reading per job type measured.

Remarks

Each type is replaced rather than accumulated, so a measurement is the depth at that moment. A type nothing has ever measured is absent from the gauge entirely, which is what keeps a flat zero meaning "measured and empty" rather than "never looked at".

Exceptions

ArgumentNullException

Thrown when readings is null.