Table of Contents

Class EmailEmbeddingBackfillTelemetry.PassScope

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

Carries one bounded upkeep pass from the span that opens it to the result that ends it.

public sealed class EmailEmbeddingBackfillTelemetry.PassScope : IDisposable
Inheritance
EmailEmbeddingBackfillTelemetry.PassScope
Implements
Inherited Members

Remarks

A pass that reached no result is published with an error status and no outcome, which is what an unresolved concurrency conflict and an unexpected failure both produce. Neither has a word among the outcomes, because every one of those is a state the sweep itself reached. A pass stopped from outside is neither, and is published through Interrupted() instead.

Methods

Dispose()

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

Ended(EmbeddingGenerationUpkeepResult)

Records how the pass ended and what it moved.

Interrupted()

Records that the pass was stopped from outside rather than failing: the host shut down, or another replica took the sweep.