Skip to content

gRPC HealthV1 support without .proto files #3428

@f0o

Description

@f0o

Feature Description

Currently to check/test gRPC endpoints all .proto files need to be supplied and loaded.

HealthV1 is a well-defined and maintained standard by gRPC workgroup (https://grpc.io/docs/guides/health-checking/ https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto) and shouldn't require the end-user (us in this case) to supply the .proto files to check against.

It would be a great quality of life improvement if this standard could be consumed without much preloading the definitions.

Suggested Solution (optional)

Perhaps instead of using client.invoke('MyMethodHere',data) we could add a generic client.healthCheck(serviceName) method which invokes /grpc.health.v1.Health.Check with optional serviceName as parameter.

This could remove a lot of boilerplate code and needless shipping of a standardized .proto file

Already existing or connected issues / PRs (optional)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions