stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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));
|
||||
}
|
||||
Reference in New Issue
Block a user