spring-cloud / spring-cloud/spring-cloud-consul

Dynamic Tags for service registration

Open
#109 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.