Class AppMetrics
- Namespace
- Virtufin.WorkManager.Services
- Assembly
- Virtufin.WorkManager.dll
Application-level metrics for the WorkManager service.
public static class AppMetrics
- Inheritance
-
AppMetrics
- Inherited Members
Fields
DaprCallLatency
Histogram for Dapr call latency.
public static readonly Histogram<double> DaprCallLatency
Field Value
LockContentionEvents
Counter for lock contention events.
public static readonly Counter<long> LockContentionEvents
Field Value
MessagesProcessed
Counter for messages processed per topic.
public static readonly Counter<long> MessagesProcessed
Field Value
MeterName
public const string MeterName = "Virtufin.WorkManager"
Field Value
WorkerCountByStatus
Number of workers by status (Running, Stopped).
public static readonly ObservableGauge<int> WorkerCountByStatus
Field Value
Methods
RecordDaprCallLatency(Activity?)
Records Dapr call latency.
public static void RecordDaprCallLatency(Activity? activity)
Parameters
activityActivity
RecordLockContention(string)
Records a lock contention event.
public static void RecordLockContention(string groupId)
Parameters
groupIdstring
RecordMessageProcessed(string)
Records a message processed for a topic.
public static void RecordMessageProcessed(string topic)
Parameters
topicstring
SetWorkerCounts(int, int)
Updates the worker count gauges.
public static void SetWorkerCounts(int running, int stopped)