15 lines
580 B
C#
15 lines
580 B
C#
using System.Diagnostics;
|
|
using System.Diagnostics.Metrics;
|
|
|
|
namespace PostFundManagement.Domain.Extensions;
|
|
|
|
public static class MediatorTelemetry
|
|
{
|
|
public const string ServiceName = "LiteCharms.Mediator";
|
|
|
|
public static readonly ActivitySource Source = new(ServiceName);
|
|
public static readonly Meter Meter = new(ServiceName);
|
|
|
|
public static readonly Counter<long> RequestCounter = Meter.CreateCounter<long>("mediator_requests_total");
|
|
public static readonly Histogram<double> RequestDuration = Meter.CreateHistogram<double>("mediator_request_duration_ms");
|
|
} |