From c08e94c93b83169006aaefc8e77c5b33c11f19c4 Mon Sep 17 00:00:00 2001 From: 0GiS0 Date: Thu, 8 Feb 2024 16:42:01 +0100 Subject: [PATCH] Remove Prometheus instrumentation and add Azure Monitor OpenTelemetry package --- Program.cs | 7 ------- tour-of-heroes-api.csproj | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Program.cs b/Program.cs index 0708001..ae38623 100644 --- a/Program.cs +++ b/Program.cs @@ -72,13 +72,6 @@ }); -builder.Services.Configure(options => -{ - // Filter out instrumentation of the Prometheus scraping endpoint. - options.Filter = ctx => ctx.Request.Path != "/metrics"; -}); - - /************************************************************************************************/ // Add CORS policy diff --git a/tour-of-heroes-api.csproj b/tour-of-heroes-api.csproj index 5d4e413..d26abd2 100644 --- a/tour-of-heroes-api.csproj +++ b/tour-of-heroes-api.csproj @@ -8,7 +8,6 @@ - runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -30,6 +29,7 @@ +