feat: Add NetEvolve.HealthChecks.CouchDb health check implementation #1069
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.
What does this PR do?
Implements health check support for CouchDb using the MyCouch client library.
Core Implementation:
CouchDbHealthCheck- Verifies database connectivity viaHeadAsync()with configurable timeoutCouchDbOptions- Configuration with connection string and timeout (100ms default)CouchDbConfigure- Validates configuration including connection string presence and timeout rangeDependencyInjectionExtensions- Registration with default tags["couchdb", "nosql"]Key Technical Decisions:
WithTimeoutAsyncdue to MyCouch API constraintsDbConnectionInfoconstructorhttp://server:port/databaseTest Coverage:
Example Usage:
Why is it important?
Enables health monitoring for CouchDb databases in .NET applications, following the established health check pattern used across the repository.
Related issues
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
analytics.localstack.cloud/opt/code/localstack/.venv/bin/python -m localstack.runtime.main(dns block)api.localstack.cloudassets.localstack.cloudlocalhost.localstack.clouds3.localhost.localstack.cloudwestus-0.in.applicationinsights.azure.com/home/REDACTED/work/healthchecks/healthchecks/tests/NetEvolve.HealthChecks.Tests.Integration/bin/Debug/net9.0/NetEvolve.HealthChecks.Tests.Integration --internal-msbuild-node /tmp/cf609e6a6b8441d5b1d830a9cd6df35d(dns block)/home/REDACTED/work/healthchecks/healthchecks/tests/NetEvolve.HealthChecks.Tests.Integration/bin/Debug/net8.0/NetEvolve.HealthChecks.Tests.Integration --internal-msbuild-node /tmp/3c282b53f3624098bec8a79a35ecb109(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.