Merged
Conversation
… graceful shutdown
…o library - Introduced health check configuration in `Config` struct with paths for health, readiness, and liveness checks. - Updated `Service` to include a health checker and middleware for health checks. - Enhanced metrics server to support comprehensive health check endpoints. - Updated README with new health check features and usage examples.
- Added `github.com/lib/pq` as an indirect dependency in `go.mod` and updated `go.sum`. - Removed the example `main.go` file as it is no longer needed.
- Replaced MySQL health check with PostgreSQL in the README example. - Updated the example code to reflect the new PostgreSQL health check configuration. - Simplified the example handler to return a basic response.
- Deleted the demo main.go file as it was no longer needed. - Updated health check examples to streamline functionality and improve clarity. - Consolidated health check logic for external APIs in the custom health check example.
- Updated the import alias for the PostgreSQL health check from `healthMysql` to `healthPostgres` in the README example to reflect accurate naming conventions.
- Simplified the health check example in the README by directly using the result of the Measure function. - Updated the response to include health check details for better visibility.
- Modified metric registration functions to ensure that metric names are prefixed with the service name. - Updated test cases to reflect the new metric naming convention. - Enhanced README to clarify the automatic collection of service-specific metrics.
- Added `github.com/prometheus/client_model` as a direct dependency in `go.mod`. - Moved the `ensureMetricNamePrefix` function to a new location in `metrics.go` for better organization and clarity.
- Upgraded the golangci-lint GitHub Action from version v3 to v8 in the CI workflow configuration to ensure compatibility with the latest linting features and improvements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.