← All changes
Improvement

Performance data on heartbeats

The history modal on heartbeats now shows the runtime of the job logging the heartbeat:

Performance data on heartbeats

The new performance metric is already set automatically through the heartbeat integration packages for Hangfire, Azure Functions, and ASP.NET Core. The metric is named Took and can be set manually through the API or from code:

var stopwatch = new Stopwatch();
stopwatch.Start();
// run job
stopwatch.Stop();
heartbeats.Healthy(
    logId,
    heartbeatId,
    took: stopwatch.ElapsedMilliseconds);