17 lines
528 B
C#
17 lines
528 B
C#
using System.Diagnostics.Metrics;
|
|
|
|
namespace StellaOps.Provcache;
|
|
|
|
public static partial class ProvcacheTelemetry
|
|
{
|
|
private static readonly Histogram<double> _latencyHistogram = Meter.CreateHistogram<double>(
|
|
LatencySecondsMetric,
|
|
unit: "s",
|
|
description: "Cache operation latency in seconds.");
|
|
|
|
private static readonly Histogram<long> _entrySizeHistogram = Meter.CreateHistogram<long>(
|
|
EntriesSizeMetric,
|
|
unit: "bytes",
|
|
description: "Size of cache entries in bytes.");
|
|
}
|