From 799bc559beae9898ee7d2cc2b7cd7c8303891da5 Mon Sep 17 00:00:00 2001 From: Jacob Parker Date: Thu, 26 Oct 2023 12:22:23 -0400 Subject: [PATCH] Fix ASP.NET metric instrument name in example (#30844) --- .../log-mon/metrics/metrics/samples/web-metrics/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/log-mon/metrics/metrics/samples/web-metrics/Program.cs b/aspnetcore/log-mon/metrics/metrics/samples/web-metrics/Program.cs index 5bb74d1d67..3fe4ce5172 100644 --- a/aspnetcore/log-mon/metrics/metrics/samples/web-metrics/Program.cs +++ b/aspnetcore/log-mon/metrics/metrics/samples/web-metrics/Program.cs @@ -8,7 +8,7 @@ builder.Services.AddOpenTelemetry() builder.AddMeter("Microsoft.AspNetCore.Hosting", "Microsoft.AspNetCore.Server.Kestrel"); - builder.AddView("http-server-request-duration", + builder.AddView("http.server.request.duration", new ExplicitBucketHistogramConfiguration { Boundaries = new double[] { 0, 0.005, 0.01, 0.025, 0.05,