Class StoredContentMoveTelemetry
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
Publishes what the move of stored content carried, what it refused to carry, and how long a pass took.
public sealed class StoredContentMoveTelemetry : IStoredContentMoveTelemetry
- Inheritance
-
StoredContentMoveTelemetry
- Implements
- Inherited Members
Remarks
The counters are what an operator watches a move by, because the question is asked across passes rather than within one: how much of the mailbox is in the bucket now, how many bytes that came to, and how much the move would not touch. The run record answers the same question for one move; these answer it for a deployment, across the restarts and the pauses a move of a large mailbox lives through.
Refusals carry the reason as their one dimension, because that is what an operator acts on and the acts differ: a payload whose stored bytes disagree with their own row is a mailbox to re-synchronize, an object that came back wrong is an endpoint to look at, and a payload too large to hold is a bound to raise.
Nothing here is derived from a message. There is no dimension for the payload kind either, deliberately: a kind names which table a row is in, an operator does nothing differently for one, and it would put the shape of the schema into every series the move publishes.
Constructors
- StoredContentMoveTelemetry(TimeProvider)
Initializes the instruments every pass reports through.
Methods
- BeginPass()
Opens the report of one bounded pass, which is published when the returned scope is disposed.