GithubHelp home page GithubHelp logo

Comments (7)

vertonghenb avatar vertonghenb commented on June 3, 2024 1

@carlowahlstedt i implementeren something like this not so long ago I’ll pr it when I get back from vacation

from aspnetcore.diagnostics.healthchecks.

unaizorrilla avatar unaizorrilla commented on June 3, 2024

Umm let me check with more people!

from aspnetcore.diagnostics.healthchecks.

vertonghenb avatar vertonghenb commented on June 3, 2024

@unaizorrilla sure , give me a heads-up when you have a design ready

from aspnetcore.diagnostics.healthchecks.

CarlosLanderas avatar CarlosLanderas commented on June 3, 2024

@vertonghenb, thanks for your contribution. I do think that appsettings checking should be a task that has to be done on startup. Is difficult for me to see it like a Health check. It might have sense it you configure your settings with hot reload tough

from aspnetcore.diagnostics.healthchecks.

unaizorrilla avatar unaizorrilla commented on June 3, 2024

I can close this?

from aspnetcore.diagnostics.healthchecks.

vertonghenb avatar vertonghenb commented on June 3, 2024

@CarlosLanderas
The basic idea is that you:

  • Always let the App Startup without any isses (wrong appsettings etc)
  • But once the app is started, you can check for the AppSettings(if they're ok or not)

from aspnetcore.diagnostics.healthchecks.

carlowahlstedt avatar carlowahlstedt commented on June 3, 2024

I agree with @vertonghenb here. There might be situations where your app settings are invalid but it might only impact a small section of the site. Keeping the entire site from coming up, would mean that users couldn't even run in "degraded mode" until this one configuration was corrected.

This would also allow other libraries that require specific AppSettings to be configured to use this so that only their feature doesn't working but there can still be a notification that something isn't working.

Here's a specific example. I had configured App Insights but the copy/paste of the key was missing the last character. If I had this check, then the site would come up, and then throw a health-check that the value was invalid. I would have known right away that something was miss configured.

image

from aspnetcore.diagnostics.healthchecks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.