Skip to content

fix(spring): preserve RestClient customizers#92

Open
alejandroGM0 wants to merge 1 commit intohiero-ledger:mainfrom
alejandroGM0:fix/spring-restclient-observability-clean
Open

fix(spring): preserve RestClient customizers#92
alejandroGM0 wants to merge 1 commit intohiero-ledger:mainfrom
alejandroGM0:fix/spring-restclient-observability-clean

Conversation

@alejandroGM0
Copy link
Copy Markdown
Contributor

Summary

Use Boot’s RestClient.Builder when present so Hiero’s Spring RestClient instances inherit Boot HTTP client customizations (observability/metrics/tracing when enabled).

Changes

  • HieroAutoConfiguration: ObjectProvider<RestClient.Builder> + getIfAvailable(RestClient::builder); mirror node uses clone().baseUrl(...).
  • ContractVerificationClientImplementation: build client from injected RestClient.Builder (no RestClient.create()).

Why

Manual RestClient.create() / raw RestClient.builder() can bypass Boot’s builder pipeline.

Verify

./mvnw -pl hiero-enterprise-spring -am test

Signed-off-by: Alejandro <26930485+alejandroGM0@users.noreply.github.com>
@alejandroGM0 alejandroGM0 force-pushed the fix/spring-restclient-observability-clean branch from 8f3a9af to 05e6bdd Compare April 27, 2026 16:43
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.

1 participant