Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UseHealthChecks vs. MapHealthChecks /5 #29439

Merged
merged 7 commits into from
Jul 10, 2023
Merged

UseHealthChecks vs. MapHealthChecks /5 #29439

merged 7 commits into from
Jul 10, 2023

Conversation

Rick-Anderson
Copy link
Contributor

@Rick-Anderson Rick-Anderson commented Jun 6, 2023

Fixes #29421


Internal previews

📄 File 🔗 Preview link
aspnetcore/host-and-deploy/health-checks.md Health checks in ASP.NET Core

@Rick-Anderson
Copy link
Contributor Author

@JuergenGutsch please review. It's way too long, should I cut most of that out?

@Rick-Anderson
Copy link
Contributor Author

@ngbrown please review

@Rick-Anderson Rick-Anderson marked this pull request as ready for review June 6, 2023 01:43
@Rick-Anderson
Copy link
Contributor Author

@ngbrown
Copy link
Contributor

ngbrown commented Jun 9, 2023

@Rick-Anderson I think the updated explanation looks good.

@jods4

This comment was marked as off-topic.

@mettelephant

This comment was marked as off-topic.

@Rick-Anderson
Copy link
Contributor Author

@JuergenGutsch please review. It's way too long, should I cut most of that out?

@Rick-Anderson Rick-Anderson requested review from JamesNK and removed request for JamesNK June 27, 2023 00:03
@cremor
Copy link

cremor commented Jul 4, 2023

I seems like in .NET 8 we will be able to write app.MapHealthChecks("/healthz").ShortCircuit();, see #28935
I think this should also be mentioned here.

@Rick-Anderson

This comment was marked as resolved.

@Rick-Anderson
Copy link
Contributor Author

I seems like in .NET 8 we will be able to write app.MapHealthChecks("/healthz").ShortCircuit();, see #28935 I think this should also be mentioned here.

See #29709

aspnetcore/host-and-deploy/health-checks.md Outdated Show resolved Hide resolved
aspnetcore/host-and-deploy/health-checks.md Outdated Show resolved Hide resolved
Comment on lines 311 to 313
* Provides a default health check without specifying a path. Allows performing a health check on the root path or any request made to the specified port.
* Selecting any endpoint on a port.
* Provides a catch-all health check. Handles health checks for any path.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are all saying the same thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are all saying the same thing.

@JamesNK Can you make a suggestion of the lines to delete?

Co-authored-by: James Newton-King <james@newtonking.com>
Co-authored-by: James Newton-King <james@newtonking.com>
@Rick-Anderson Rick-Anderson merged commit 02b2664 into main Jul 10, 2023
3 checks passed
@Rick-Anderson Rick-Anderson deleted the useVsMap branch July 10, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Difference between UseHealthChecks and MapHealthChecks
6 participants