Method BeginMessage
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
BeginMessage()
Opens the span one message's turn at being embedded is reported as, and returns the scope that ends it.
public EmailEmbeddingTelemetry.MessageScope BeginMessage()
Returns
- EmailEmbeddingTelemetry.MessageScope
The scope, which the caller must dispose; a scope disposed without Ended(StoredEmailEmbeddingRun) reports a turn that produced no result.
Remarks
Nothing about the message reaches the span. Which message was embedded is a stored identity and would open a series per message, so the span carries what the turn did — how it ended, and how many passages it gave a vector to — and the message itself stays in the queue the worker took it from.