From 00d7901b08ccc63556efdc87df09e87479b9a432 Mon Sep 17 00:00:00 2001 From: Paul Rohorzka Date: Sat, 10 Dec 2022 07:20:58 +0100 Subject: [PATCH] Always Show Section "Securing Metrics Endpoints" Move section "Securing Metrics Endpoints" out of the collapsable region for "env response using Plain Text formatting" --- content/web-monitoring/aspnet-core/endpoint-middleware.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/web-monitoring/aspnet-core/endpoint-middleware.md b/content/web-monitoring/aspnet-core/endpoint-middleware.md index 89ee74c..7ca3118 100644 --- a/content/web-monitoring/aspnet-core/endpoint-middleware.md +++ b/content/web-monitoring/aspnet-core/endpoint-middleware.md @@ -451,6 +451,8 @@ The following are example response generated by the App Metrics ASP.NET Core MVC OS Version = Microsoft Windows 10.0.15063 Process Architecture = X64 ``` +{{% /expand%}} + ## Securing Metrics Endpoints Using ASP.NET Core's IStartupFilter is great way to restrice access to metrics and health endpoints beause startup filters are evaluated before any middleware logic runs. @@ -507,5 +509,3 @@ Register the implementation with Dependency Injection in `Startup.cs`: ... } ``` - -{{% /expand%}} \ No newline at end of file