Table of Contents

Field AttemptSpanName

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

The name one attempt at a durable job opens its span under.

public const string AttemptSpanName = "run_job"

Returns

string
The name one attempt at a durable job opens its span under.

Remarks

A job is dispatched by an interval rather than by a request, so without a span of its own everything an attempt does — its database commands above all — reaches a trace store parentless, competing with whatever else the process was doing at that moment. Named after what the attempt does rather than after the worker that dispatches it, so it stays right if a job is ever run from somewhere else.

Published rather than kept inside this assembly, because the span is opened around a boundary the composition root draws — one attempt, one scope — and what asserts that nesting therefore lives with the host rather than here. A second copy of the word would be a second place for it to drift.