spring-cloud / spring-cloud/spring-cloud-consul
Dynamic Tags for service registration
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 822
- Forks
- 539
- Avg merge
- 9h 31m
- Merged PRs (30d)
- 7
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names the spring.cloud.consul.discovery.tags setting and dynamic component registration as the starting points. No repository files or tests are identified, so first locate the service-registration code and determine whether application logic can supply component names as tags; done means the supported behavior and its tests are clearly defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100