Skip to content

Commit

Permalink
Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliesenfeld committed Jul 18, 2023
1 parent 19bc5f8 commit 7e10f63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/showcase/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
// call and do some pre- and post-processing, having the check state and check function result at hand.
health.WithInterceptors(interceptors.BasicLogger()),

// Set service info that will be included in all check results.
// Set service information to be included in all check results.
health.WithInfo(map[string]any{
"version": "v0.0.8",
"environment": "production",
Expand Down
4 changes: 1 addition & 3 deletions examples/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ func main() {
// Configure a global timeout that will be applied to all checks.
health.WithTimeout(10*time.Second),

// Set service info that will be included in all check results.
// Will be available in the "info" field of the JSON response body.
// Set service information to be included in all check results.
health.WithInfo(map[string]any{
"version": "v0.0.1",
"environment": "production",
"SHA": "0719f0e2275e07077237ddb55c86ad2e52543555",
}),

// A check configuration to see if our database connection is up.
Expand Down

0 comments on commit 7e10f63

Please sign in to comment.