diff --git a/docs/modules/ROOT/pages/reactive/integrations/observability.adoc b/docs/modules/ROOT/pages/reactive/integrations/observability.adoc index 27b533e6a5..7ca1a437fe 100644 --- a/docs/modules/ROOT/pages/reactive/integrations/observability.adoc +++ b/docs/modules/ROOT/pages/reactive/integrations/observability.adoc @@ -38,7 +38,7 @@ public class MyApplication { @Bean ObservationRegistryCustomizer addTextHandler() { - return (registry) -> registry.observationConfig().observationHandler(new ObservationTextHandler()); + return (registry) -> registry.observationConfig().observationHandler(new ObservationTextPublisher()); } public static void main(String[] args) { @@ -67,7 +67,7 @@ class MyApplication { @Bean fun addTextHandler(): ObservationRegistryCustomizer { return registry: ObservationRegistry -> registry.observationConfig() - .observationHandler(ObservationTextHandler()); + .observationHandler(ObservationTextPublisher()); } fun main(args: Array) { @@ -129,7 +129,7 @@ public class MyApplication { @Bean ObservationRegistry observationRegistry() { ObservationRegistry registry = ObservationRegistry.create(); - registry.observationConfig().observationHandler(new ObservationTextHandler()); + registry.observationConfig().observationHandler(new ObservationTextPublisher()); return registry; } @@ -159,7 +159,7 @@ class MyApplication { @Bean fun observationRegistry(): ObservationRegistry { ObservationRegistry registry = ObservationRegistry.create() - registry.observationConfig().observationHandler(ObservationTextHandler()) + 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 3adf215d5b..7e975a8b1a 100644 --- a/docs/modules/ROOT/pages/servlet/integrations/observability.adoc +++ b/docs/modules/ROOT/pages/servlet/integrations/observability.adoc @@ -38,7 +38,7 @@ public class MyApplication { @Bean ObservationRegistryCustomizer addTextHandler() { - return (registry) -> registry.observationConfig().observationHandler(new ObservationTextHandler()); + return (registry) -> registry.observationConfig().observationHandler(new ObservationTextPublisher()); } public static void main(String[] args) { @@ -67,7 +67,7 @@ class MyApplication { @Bean fun addTextHandler(): ObservationRegistryCustomizer { return registry: ObservationRegistry -> registry.observationConfig() - .observationHandler(ObservationTextHandler()); + .observationHandler(ObservationTextPublisher()); } fun main(args: Array) { @@ -134,7 +134,7 @@ public class MyApplication { @Bean ObservationRegistry observationRegistry() { ObservationRegistry registry = ObservationRegistry.create(); - registry.observationConfig().observationHandler(new ObservationTextHandler()); + registry.observationConfig().observationHandler(new ObservationTextPublisher()); return registry; } @@ -164,7 +164,7 @@ class MyApplication { @Bean fun observationRegistry(): ObservationRegistry { ObservationRegistry registry = ObservationRegistry.create() - registry.observationConfig().observationHandler(ObservationTextHandler()) + registry.observationConfig().observationHandler(ObservationTextPublisher()) return registry }