From 0b98eb41393e2ec16cf8801f11209510c00d39a5 Mon Sep 17 00:00:00 2001 From: Xi Minghui Date: Mon, 26 Aug 2024 11:59:59 +0800 Subject: [PATCH] Correct ObservationRegistry Type Reference --- .../ROOT/pages/reactive/integrations/observability.adoc | 4 ++-- .../ROOT/pages/servlet/integrations/observability.adoc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/modules/ROOT/pages/reactive/integrations/observability.adoc b/docs/modules/ROOT/pages/reactive/integrations/observability.adoc index 7ca1a437fe..0534fae582 100644 --- a/docs/modules/ROOT/pages/reactive/integrations/observability.adoc +++ b/docs/modules/ROOT/pages/reactive/integrations/observability.adoc @@ -127,7 +127,7 @@ public class MyApplication { } @Bean - ObservationRegistry observationRegistry() { + ObservationRegistry observationRegistry() { ObservationRegistry registry = ObservationRegistry.create(); registry.observationConfig().observationHandler(new ObservationTextPublisher()); return registry; @@ -157,7 +157,7 @@ class MyApplication { } @Bean - fun observationRegistry(): ObservationRegistry { + fun observationRegistry(): ObservationRegistry { ObservationRegistry registry = ObservationRegistry.create() registry.observationConfig().observationHandler(ObservationTextPublisher()) return registry diff --git a/docs/modules/ROOT/pages/servlet/integrations/observability.adoc b/docs/modules/ROOT/pages/servlet/integrations/observability.adoc index 7e975a8b1a..b757a862f2 100644 --- a/docs/modules/ROOT/pages/servlet/integrations/observability.adoc +++ b/docs/modules/ROOT/pages/servlet/integrations/observability.adoc @@ -132,7 +132,7 @@ public class MyApplication { } @Bean - ObservationRegistry observationRegistry() { + ObservationRegistry observationRegistry() { ObservationRegistry registry = ObservationRegistry.create(); registry.observationConfig().observationHandler(new ObservationTextPublisher()); return registry; @@ -162,7 +162,7 @@ class MyApplication { } @Bean - fun observationRegistry(): ObservationRegistry { + fun observationRegistry(): ObservationRegistry { ObservationRegistry registry = ObservationRegistry.create() registry.observationConfig().observationHandler(ObservationTextPublisher()) return registry