Skip to content

Improve api registration#1254

Closed
aureamunoz wants to merge 1 commit into
smallrye:mainfrom
aureamunoz:improve-api-registration-issue-1253
Closed

Improve api registration#1254
aureamunoz wants to merge 1 commit into
smallrye:mainfrom
aureamunoz:improve-api-registration-issue-1253

Conversation

@aureamunoz

Copy link
Copy Markdown
Collaborator

Related to #1253

Comment thread api/src/main/java/io/smallrye/stork/api/Service.java
Comment thread api/src/main/java/io/smallrye/stork/api/ServiceRegistrar.java Outdated
Comment thread api/src/main/java/io/smallrye/stork/api/Service.java Outdated
Comment thread api/src/main/java/io/smallrye/stork/api/ServiceRegistrar.java
Comment thread api/src/main/java/io/smallrye/stork/api/ServiceRegistrar.java
@aureamunoz
aureamunoz force-pushed the improve-api-registration-issue-1253 branch from 3fdc76f to 2428bd6 Compare June 17, 2026 12:08
@aureamunoz
aureamunoz requested a review from cescoffier June 22, 2026 12:39
Comment thread api/src/main/java/io/smallrye/stork/api/Service.java
Comment thread api/src/main/java/io/smallrye/stork/api/Service.java
Comment thread api/src/main/java/io/smallrye/stork/api/ServiceRegistrar.java Outdated
checkAddressNotNull(options.ipAddress());

return registerServiceInstance(options.serviceName(), options.ipAddress(), options.defaultPort());
return registerServiceInstance(options.serviceName(), null, options.tags(), Metadata.empty(), options.ipAddress(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Metadata.empty() and not options.metadata() ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RegistrarOptions.metadata() is a Map<String, String>, incompatible with Metadata. Implementations that need it (Consul, Eureka) already override this method and read options.metadata() directly.

Comment thread api/src/main/java/io/smallrye/stork/api/Service.java
Comment thread test-utils/src/main/java/io/smallrye/stork/test/TestServiceRegistrarProvider.java Outdated
@aureamunoz
aureamunoz force-pushed the improve-api-registration-issue-1253 branch from 2428bd6 to 6e332bc Compare June 26, 2026 10:11
@aureamunoz
aureamunoz force-pushed the improve-api-registration-issue-1253 branch from 6e332bc to 11d94b2 Compare July 3, 2026 11:33
@aureamunoz
aureamunoz force-pushed the improve-api-registration-issue-1253 branch from 11d94b2 to 5885202 Compare July 8, 2026 08:22
@aureamunoz

Copy link
Copy Markdown
Collaborator Author

Closing before branch swap. Will reopen against new main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants