Open mishadoff opened 8 years ago
No, there's not.
It is a pity. Do you plan to add support for this at some point? Or any workarounds?
You just opened the issue :-)
Pull requests are welcome.
As discussed on #168, this behavior can be achieved by extending ConsulLifecycle
and overriding the register(NewService)
method.
Is there a way to set
spring.cloud.consul.discovery.tags
programmatically based on some application logic?My use case is following: I have some
bootstrap.jar
application which runs with-Dloader.path
for additional jars as dynamic components. Each dynamic component has a specific interface, annotation@Component
and a name. I want to expose all component names as a tags during service registration.