From 6770be1748052fc990bdc6ea8ba3a0e94dbd2759 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Fri, 8 Nov 2024 10:56:21 +0800 Subject: [PATCH] Document that Spring Boot will auto-configure `RestClient.Builder` beans with the observation registry See https://github.com/spring-projects/spring-boot/issues/38500 --- framework-docs/modules/ROOT/pages/integration/observability.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/framework-docs/modules/ROOT/pages/integration/observability.adoc b/framework-docs/modules/ROOT/pages/integration/observability.adoc index efbce8489515..5cf1bed41b83 100644 --- a/framework-docs/modules/ROOT/pages/integration/observability.adoc +++ b/framework-docs/modules/ROOT/pages/integration/observability.adoc @@ -305,6 +305,7 @@ Instrumentation uses the `org.springframework.http.client.observation.ClientRequ === RestClient Applications must configure an `ObservationRegistry` on the `RestClient.Builder` to enable the instrumentation; without that, observations are "no-ops". +Spring Boot will auto-configure `RestClient.Builder` beans with the observation registry already set. Instrumentation uses the `org.springframework.http.client.observation.ClientRequestObservationConvention` by default, backed by the `ClientRequestObservationContext`.