Skip to content

Commit 3ffdc4c

Browse files
committed
Cleanup
1 parent c11900f commit 3ffdc4c

File tree

4 files changed

+3
-44
lines changed

4 files changed

+3
-44
lines changed

src/ServiceControl.Audit/Auditing/Metrics/IngestionMetrics.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ namespace ServiceControl.Audit.Auditing.Metrics;
99

1010
public class IngestionMetrics
1111
{
12+
public const string MeterName = "Particular.ServiceControl.Audit";
13+
1214
public IngestionMetrics(IMeterFactory meterFactory)
1315
{
1416
var meter = meterFactory.Create(MeterName, MeterVersion);
@@ -64,7 +66,6 @@ void RecordBatchOutcome(bool success)
6466
readonly Histogram<double> ingestionDuration;
6567
readonly Counter<long> failureCounter;
6668

67-
const string MeterName = "Particular.ServiceControl.Audit";
6869
const string MeterVersion = "0.1.0";
6970

7071
static readonly string SagaUpdateMessageType = typeof(SagaUpdatedMessage).FullName;

src/ServiceControl.Audit/HostApplicationBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static void AddServiceControlAudit(this IHostApplicationBuilder builder,
8888
autoGenerateServiceInstanceId: true))
8989
.WithMetrics(b =>
9090
{
91-
b.AddAuditIngestionMeters();
91+
b.AddMeter(IngestionMetrics.MeterName);
9292
b.AddOtlpExporter(e =>
9393
{
9494
e.Endpoint = otelMetricsUri;

src/ServiceControl.Audit/Infrastructure/DurationRecorder.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/ServiceControl.Audit/Infrastructure/Telemetry.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)