Class MessagingMeterStore
Namespace: Momentum.ServiceDefaults.Messaging.Telemetry
Assembly: Momentum.ServiceDefaults.dll
Provides a store for messaging metrics, creating and caching metrics instances per message type.
csharp
public class MessagingMeterStoreInheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
MessagingMeterStore(Meter)
Provides a store for messaging metrics, creating and caching metrics instances per message type.
csharp
public MessagingMeterStore(Meter meter)Parameters
meter Meter
Fields
MessagingMeterKey
The key used to register the messaging meter in the DI container.
csharp
public const string MessagingMeterKey = "App.Messaging.Meter"Field Value
Methods
GetOrCreateMetrics(string)
Gets or creates metrics for the specified message type.
csharp
public MessagingMetrics GetOrCreateMetrics(string messageType)Parameters
messageType string
The full type name of the message.
Returns
The metrics instance for the message type.