Table of Contents

Class JobQueueTelemetry.JobAttemptScope

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

Carries one attempt at a job from the span that opens it to the result that ends it.

public sealed class JobQueueTelemetry.JobAttemptScope : IDisposable
Inheritance
JobQueueTelemetry.JobAttemptScope
Implements
Inherited Members

Remarks

An attempt that reached no result is published with an error status and no outcome, because there is no word for it: every outcome this queue publishes is one the executor decided, and inventing one here would report a decision nothing made. That happens where the attempt could not be dispatched at all, which is a defect in the composition rather than a state of the work.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Ended(JobExecutionResult)

Records what the attempt turned out to have done.