up
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.Diagnostics.Metrics;
|
||||
|
||||
namespace StellaOps.TaskRunner.Core.Execution;
|
||||
|
||||
internal static class TaskRunnerTelemetry
|
||||
{
|
||||
internal const string MeterName = "stellaops.taskrunner";
|
||||
|
||||
internal static readonly Meter Meter = new(MeterName);
|
||||
internal static readonly Histogram<double> StepDurationMs =
|
||||
Meter.CreateHistogram<double>("taskrunner.step.duration.ms", unit: "ms");
|
||||
internal static readonly Counter<long> StepRetryCount =
|
||||
Meter.CreateCounter<long>("taskrunner.step.retry.count");
|
||||
internal static readonly UpDownCounter<long> RunningSteps =
|
||||
Meter.CreateUpDownCounter<long>("taskrunner.steps.running");
|
||||
}
|
||||
Reference in New Issue
Block a user