Table of Contents

Method RecordAttempt

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

RecordAttempt(JobExecutionResult)

Records one attempt: that it happened, how long it took, and what became of the job.

public void RecordAttempt(JobExecutionResult result)

Parameters

result JobExecutionResult

What the attempt did.

Remarks

An attempt the host released on shutdown and one whose lease had already moved on are both counted, because both occupied a worker and neither is a failure of the work. Which they were is the outcome dimension, so a rolling deployment shows up as released attempts rather than as an unexplained gap.

Exceptions

ArgumentNullException

Thrown when result is null.