I'm not sure anyone is actually using the service directory anymore, so this might not be the best place for a healthcheck. You should instead use the after server start hook to signal a healthy server to your init system. Otherwise, you should use an initializer to provide app specific insights. For example, MX is using protobuf-nats for transport, and this health check wouldn't guard against a failed NATS cluster, etc.
I'm not sure anyone is actually using the service directory anymore, so this might not be the best place for a healthcheck. You should instead use the after server start hook to signal a healthy server to your init system. Otherwise, you should use an initializer to provide app specific insights. For example, MX is using protobuf-nats for transport, and this health check wouldn't guard against a failed NATS cluster, etc.