Skip to content

Comments

Rewrite#2

Closed
MarvinJWendt wants to merge 17 commits intomainfrom
rewrite
Closed

Rewrite#2
MarvinJWendt wants to merge 17 commits intomainfrom
rewrite

Conversation

@MarvinJWendt
Copy link
Member

No description provided.

…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.
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.

1 participant