-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide Dapr health check #712
Labels
enhancement
New feature or request
Comments
I can take it, when the new version with dapr/dotnet-sdk#662 will be released |
Thanks @dmytrohridin ! |
I'm using this atm public class DaprHealthCheck : IHealthCheck
{
private readonly DaprClient _daprClient;
public DaprHealthCheck(DaprClient daprClient)
{
_daprClient = daprClient ?? throw new System.ArgumentNullException(nameof(daprClient));
}
public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
{
return await _daprClient.CheckHealthAsync(cancellationToken)
? new HealthCheckResult(HealthStatus.Healthy, "Dapr Sidecar is healthy")
: new HealthCheckResult(HealthStatus.Unhealthy, "Dapr Sidecar is unhealthy");
}
} @dmytrohridin Are you still planning on contributing? If not, I might take a shot at it |
@bgelens feel free |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What would you like to be added:
Provide Dapr health check to determine if it can talk to the sidecar.
Why is this needed:
To ensure that the integration is setup correctly and that the sidecar is reachable & up.
The text was updated successfully, but these errors were encountered: