HttpResponse register(String serviceId, String serviceName, String address, int port,
                          @Nullable Check check, List<String> tags) {
        final Service service = new Service(serviceId, serviceName, address, port, check, tags);
        try {
            return client.put("/agent/service/register", mapper.writeValueAsString(service));
        } catch (JsonProcessingException e) {
            return HttpResponse.ofFailure(e);
        }
    }
Registers a service into the Consul agent.
consul/src/main/java/com/linecorp/armeria/internal/consul/AgentServiceClient.java