aspnet / Diagnostics

[Archived] Diagnostics middleware for reporting info and handling exceptions and errors in ASP.NET Core, and diagnosing Entity Framework Core migrations errors. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
213 stars 108 forks source link

Add filtering to Health Checks middleware #455

Closed rynowak closed 6 years ago

rynowak commented 6 years ago

This allows each middleware to be configured with a specific set of checks (by name). See the comments in the sample for how this is frequently used.

This is also addresses aspnet/Home#2575 - or at least the part that we plan to do. We think that any sort of built-in system of metadata or tags is vast overkill, and doesn't really align with the primary usage of health checks.

We're providing building blocks, and these can be put together to build more complicated things like what's described in aspnet/Home#2575.