Interface IModuleHealthContributor

Assembly: redb.Tsak.Contracts.dll

Per-module health probe SPI. Modules register an implementation via DI to surface their own
status into the aggregated /api/health/{startup,live,ready} endpoints, without coupling
to the host-internal IHealthContributor (which sees the whole evaluation bag).

Lives in redb.Tsak.Contracts — the lightweight contract assembly — precisely so a
module (e.g. redb.Identity) can implement it without taking a compile-time dependency on the
full redb.Tsak.Core host and its transitive graph. is the
only type it touches, and it lives here too.


Each contributor's status is added to the evaluation under the key "module:{ModuleName}".
Exceptions thrown from are translated to
by the host so a misbehaving probe cannot crash the
health endpoint.

public interface IModuleHealthContributor

Properties

ModuleName

Stable, short name used as the entry key in the health evaluation bag (e.g. "orders" →

string ModuleName { get; }

Methods

CheckHealthAsync(CancellationToken)

Returns the current health status of the module. Implementations should be fast (single-digit

Task<HealthStatus> CheckHealthAsync(CancellationToken ct)