Table of Contents

Class EmailEmbeddingTelemetry.MessageScope

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

Carries one message's turn at being embedded from the span that opens it to the run that ends it.

public sealed class EmailEmbeddingTelemetry.MessageScope : IDisposable
Inheritance
EmailEmbeddingTelemetry.MessageScope
Implements
Inherited Members

Remarks

A turn that reached no run is published with an error status and no outcome. Every outcome this subsystem publishes is one the generator decided, so there is no word for a turn that ended before it did — which is what an unresolved concurrency conflict and an unexpected failure both produce, and both are already logged by the worker that isolates them.

Methods

Dispose()

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

Ended(StoredEmailEmbeddingRun)

Records how the turn ended and what it produced.