Class MessagingMetrics
Namespace: Momentum.ServiceDefaults.Messaging.Telemetry
Assembly: Momentum.ServiceDefaults.dll
csharp
public class MessagingMetrics
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
MessagingMetrics(string, Meter)
csharp
public MessagingMetrics(string metricName, Meter meter)
Parameters
metricName
string
meter
Meter
Methods
ExceptionHappened(Exception)
csharp
public void ExceptionHappened(Exception exception)
Parameters
exception
Exception
MessageReceived()
csharp
public void MessageReceived()
RecordProcessingTime(TimeSpan)
csharp
public void RecordProcessingTime(TimeSpan duration)
Parameters
duration
TimeSpan