From b0ed3e1cd5f4709943d3641302a40c3bcba4559a Mon Sep 17 00:00:00 2001
From: LeftTwixWand <0965142838gvs@gmail.com>
Date: Mon, 18 Nov 2024 00:01:55 +0100
Subject: [PATCH] Update version of Prometheus exporter
---
samples/Metrics/ServiceDefaults/Extensions.cs | 3 +--
samples/Metrics/ServiceDefaults/ServiceDefaults.csproj | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/samples/Metrics/ServiceDefaults/Extensions.cs b/samples/Metrics/ServiceDefaults/Extensions.cs
index 022f785f..033a5858 100644
--- a/samples/Metrics/ServiceDefaults/Extensions.cs
+++ b/samples/Metrics/ServiceDefaults/Extensions.cs
@@ -68,8 +68,7 @@ private static IHostApplicationBuilder AddOpenTelemetryExporters(this IHostAppli
// The following lines enable the Prometheus exporter (requires the OpenTelemetry.Exporter.Prometheus.AspNetCore package)
builder.Services.AddOpenTelemetry()
- // BUG: Part of the workaround for https://github.com/open-telemetry/opentelemetry-dotnet-contrib/issues/1617
- .WithMetrics(metrics => metrics.AddPrometheusExporter(options => options.DisableTotalNameSuffixForCounters = true));
+ .WithMetrics(metrics => metrics.AddPrometheusExporter());
return builder;
}
diff --git a/samples/Metrics/ServiceDefaults/ServiceDefaults.csproj b/samples/Metrics/ServiceDefaults/ServiceDefaults.csproj
index 033e7df7..52a37fc2 100644
--- a/samples/Metrics/ServiceDefaults/ServiceDefaults.csproj
+++ b/samples/Metrics/ServiceDefaults/ServiceDefaults.csproj
@@ -13,8 +13,7 @@
-
-
+