How do I get the list of tags for a Spring LoadBalancer client connected to Consul?

16 views Asked by At

I can get the metadata like this:

ServiceInstance serviceInstance = loadBalancerClient.choose(MY_SERVICE_NAME);

serviceInstance.getMetadata().forEach((key, value) -> log.info("Consul metadata entry - key: " + key + " value: " + value));

This unfortunately is not the tags - it return values like secure etc.

My question is: How do I get the list of tags for a Spring LoadBalancer client connected to Consul?

0

There are 0 answers