Releases: alexliesenfeld/health
Releases · alexliesenfeld/health
v0.8.0
Breaking Changes
CheckerResult
s
Details
field is now no pointer anymore.- The configuration option
WithMaxErrorMessageLength
was removed. This used to control the length of the string fieldCheckResult.Error
.
Instead of returning the error as a string, it is now being returned as anerror
. - All
time.Time
fields inhealth.CheckState
are now values rather than pointers. Use the
IsZero
-method to check if a value has been set or not instead.
v0.7.0
Breaking Changes
- This version introduces automatic recovery from panics that can be turned off on a per-check basis like shown in the showcase example.
Improvements
- The initial check run that is executed on startup is non-blocking anymore.
- A bug has been fixed that could cause goroutine leaks for timed out check functions.
v0.7.0-beta.2
Breaking Changes
- This version introduces automatic recovery from panics that can be turned off on a per-check basis like shown in the showcase example.
Improvements
- The initial check run that is executed on startup is not blocking service startup anymore when a health check function is slow.
v0.7.0-beta.1
Breaking Changes
- This version introduces automatic recovery from panics that can be turned off on a per-check basis like shown in the showcase example.
v0.6.0
Breaking Changes
- A ResultWriter must now additionally write the status code into the http.ResponseWriter. This is necessary due to ordering constraints when writing into a http.ResponseWriter (see #9).
Improvements
- Stopping the Checker does not wait until the initial delay of periodic checks has passed anymore. Checker.Stop stops the Checker immediately, but waits until all currently running check functions have completed.
- The health check http.Handler was patched to not include an empty
checks
map in the JSON response. In case no check functions are defined, the JSON response will therefore not be{ "status": "up", "checks" : {} }
anymore but only{ "status": "up" }
. - A Kubernetes liveness and readiness checks example was added (see
examples/kubernetes
).
v0.5.1
Documentation improvements.
v0.5.0
- BREAKING CHANGE: Changed function signature of middleware functions.
- Added a new check function interceptor and a http.Handler middleware with basic logging functionality.
- Added a new basic authentication middleware that reduces the exposed health information in case of failed authentication.
- Added a new middleware FullDetailsOnQueryParam was added that hides details by default and only shows them when a configured query parameter name was provided in the HTTP request.
- Added new Checker configuration option WithInterceptors, that will be applied to every check function.
v0.4.0
fixed test for disabled autostart.
v0.4.0-beta.2
Added function documentation.
v0.4.0-beta.1
Removed before/after listeners. Added interceptors instead.