Class ContextMetricsCollector

Assembly: redb.Tsak.Core.dll

Collects per-context metrics from the context manager.
Aggregates endpoint statistics via .

public class ContextMetricsCollector

Inheritance

Object→ContextMetricsCollector

Methods

Collect(string)

Collect metrics for a single context by name.

public ContextMetricsSnapshot? Collect(string contextName)

CollectAll()

Collect current metrics for all known contexts.

public IReadOnlyList<ContextMetricsSnapshot> CollectAll()

TrackStarted(string)

Notify that a context was started (call from coordinator/hosted service).

public void TrackStarted(string contextName)

TrackStopped(string)

Notify that a context was stopped.

public void TrackStopped(string contextName)

Constructors