Class Telemetry
- Namespace
- MailFathom.Common.Observability
- Assembly
- MailFathom.Common.dll
The activity source and meter MailFathom publishes every signal of its own through.
public static class Telemetry
- Inheritance
-
Telemetry
- Inherited Members
Remarks
One name covers the whole application, and one instance of each registry carries it. A subsystem does not choose what it is called and does not create a source or a meter of its own: it publishes through the two members below, which is what makes a name invented for a feature impossible rather than merely discouraged. What an operator wants first is every signal this process owns and no signal a library emits, and one name answers that exactly; which subsystem a signal came from is carried by the span or instrument name and its tags, where a distinction can be added without a second registration having to exist before anybody needs it.
The same string serves both registries. An activity source and a meter are separate subscriptions to OpenTelemetry and cannot collide, so publishing spans and instruments under one name is a simplification rather than a conflict.
Both live for the lifetime of the process and are deliberately not disposed. A publisher holds them rather than owning them, so a type that reports through one implements no disposal on their account — disposing a shared source would silence every other publisher, and nothing is reclaimed by disposing either at shutdown.
A span or an instrument published here carries counts, sizes, durations, outcomes, error codes, and MailFathom's own configured account and folder aliases. It never carries mail content, an address, a subject, a remote folder path, a message identifier, a UID, a search term, a credential, or model prompt and completion text — which is a cardinality rule as much as a privacy one, because every one of those would open a time series per message or per person.
A publisher choosing a word for one of its own dimensions writes it in snake_case, and writes an outcome as a
past participle: succeeded, failed, cancelled, lease_lost, outcome_unknown. This
is stated once because the cost of a second spelling is not local to the publisher that invents it — a family
writing lease-lost where another writes lease_lost is two words for one ending, and a panel written
against either one silently answers for half the deployment. The same rule is why one dimension keeps one key
wherever it is published: a folder is mailfathom.mail.folder in every family, so a query written against one
subsystem can be reused against the next.
It governs the words a publisher chooses, not the ones it carries in. A value that arrives already named — a domain identity such as a mutation's own name, or a word a protocol contract publishes — is published exactly as it is named there, because renaming it for a dashboard would put a second spelling into the world rather than remove one.
Fields
- Name
The activity source and meter name every MailFathom signal is published under.
Properties
- ActivitySource
Gets the activity source every MailFathom span is started from.
- Meter
Gets the meter every MailFathom instrument is created on.