dapr / js-sdk

Dapr SDK for Javascript
Apache License 2.0
192 stars 80 forks source link

client.health.isHealthy() needs documentation on how to use and would expect this to have retries #576

Open msfussell opened 5 months ago

msfussell commented 5 months ago

The SDKs have sidecar health status APIs

Expected Behavior

1) The `client.health.isHealthy() has no documentation on how to use this API. Add to the docs here https://v1-13.docs.dapr.io/developing-applications/sdks/js/js-client/ 2) There are no retries on this API as far as I can tell, which does not make it useful. I would either have the Python approach which hides the API on client start (it checks for health) or have a retry like Java and .NET 3) Also this does not see to check the healthx/outbound endpoint, instead does something different on the metadata endpoint. This should be consistent with the other APIs, including ideally in the name.

Actual Behavior

1) No docs 2)No retries to API 3) Different impl from other SDKs

dapr-bot commented 2 months ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.