Skip to content

feat: health check method to DaprClient - #1815

Merged
javier-aliaga merged 1 commit into
dapr:masterfrom
matheusandre1:issue898
Sep 30, 2026
Merged

javier-aliaga merged 1 commit into
dapr:masterfrom
matheusandre1:issue898

Conversation

@matheusandre1

Copy link
Copy Markdown
Contributor

Description

healthCheck() method to DaprClient that calls the sidecar's /v1.0/healthz endpoint, providing parity with the .NET SDK's CheckHealthAsync.

  • waitForSidecar already uses /v1.0/healthz/outbound (done in add health check to wait for sidecar and test it #918), so apps can call Dapr APIs (e.g. read secrets) during startup without waiting for the app channel, which resolves the deadlock described in the issue.
  • The remaining ask was a method with the behavior of /v1.0/healthz, which waits for all components, the Dapr HTTP port and the app channel to be ready (Health API docs)

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Closes: #898

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@matheusandre1
matheusandre1 marked this pull request as ready for review September 24, 2026 17:06
@matheusandre1
matheusandre1 requested review from a team as code owners September 24, 2026 17:06

@javier-aliaga javier-aliaga left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this pr is failing on java 25. @matheusandre1 can you take a look?

Signed-off-by: Matheus André <matheusandr2@gmail.com>
@codecov

codecov Bot commented Sep 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.99%. Comparing base (43a5e5d) to head (1831569).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1815      +/-   ##
============================================
+ Coverage     78.97%   78.99%   +0.02%     
- Complexity     2586     2591       +5     
============================================
  Files           264      264              
  Lines          7762     7770       +8     
  Branches        815      815              
============================================
+ Hits           6130     6138       +8     
  Misses         1269     1269              
  Partials        363      363              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@javier-aliaga
javier-aliaga merged commit d5c3c62 into dapr:master Sep 30, 2026
16 checks passed
@matheusandre1
matheusandre1 deleted the issue898 branch September 30, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recommendation for planned deprecation of DaprClientHttp

2 participants