18 lines
535 B
C#
18 lines
535 B
C#
using System.Diagnostics;
|
|
using System.Diagnostics.Metrics;
|
|
using System.Threading;
|
|
|
|
namespace StellaOps.Provcache;
|
|
|
|
public static partial class ProvcacheTelemetry
|
|
{
|
|
private static ActivitySource? _activitySource;
|
|
private static Meter? _meter;
|
|
|
|
private static ActivitySource ActivitySource =>
|
|
LazyInitializer.EnsureInitialized(ref _activitySource, () => new ActivitySource(ActivitySourceName));
|
|
|
|
private static Meter Meter =>
|
|
LazyInitializer.EnsureInitialized(ref _meter, () => new Meter(MeterName));
|
|
}
|