Class EmailEmbeddingBackfillTelemetry
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
Reports how far the embedding backfill has come and what it is spending to get there.
public sealed class EmailEmbeddingBackfillTelemetry
- Inheritance
-
EmailEmbeddingBackfillTelemetry
- Inherited Members
Remarks
The backfill's numbers are published apart from the live worker's rather than merged into them, because they answer different questions about the same provider bill: mail arriving is a rate an instance settles at, and a backfill is a finite amount of work an operator started and can stop.
How much remains is measured once per sweep rather than per observation, and the gauge answers with the last figure the backfill measured. An exact live count is an unbounded scan of every passage, so making it a gauge would put that scan on whatever interval a collector happened to be configured with; a figure that is a sweep old is what an operator watching a backfill needs, and the counters beside it are what move in between.
Nothing recorded here is mail or derived from it. The tags are MailFathom's own closed sets — an outcome name and a provider failure classification — and the values are counts, never a message identity, a passage, or a vector.
Constructors
- EmailEmbeddingBackfillTelemetry()
Initializes the instruments every backfill run reports through.
Methods
- RecordRun(StoredEmailEmbeddingBackfillResult)
Records one bounded pass of the backfill.