Correct ObservationRegistry Type Reference
This commit is contained in:
parent
febe5e6ddf
commit
0b98eb4139
|
@ -127,7 +127,7 @@ public class MyApplication {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
ObservationRegistry<ObservationRegistry> observationRegistry() {
|
ObservationRegistry observationRegistry() {
|
||||||
ObservationRegistry registry = ObservationRegistry.create();
|
ObservationRegistry registry = ObservationRegistry.create();
|
||||||
registry.observationConfig().observationHandler(new ObservationTextPublisher());
|
registry.observationConfig().observationHandler(new ObservationTextPublisher());
|
||||||
return registry;
|
return registry;
|
||||||
|
@ -157,7 +157,7 @@ class MyApplication {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
fun observationRegistry(): ObservationRegistry<ObservationRegistry> {
|
fun observationRegistry(): ObservationRegistry {
|
||||||
ObservationRegistry registry = ObservationRegistry.create()
|
ObservationRegistry registry = ObservationRegistry.create()
|
||||||
registry.observationConfig().observationHandler(ObservationTextPublisher())
|
registry.observationConfig().observationHandler(ObservationTextPublisher())
|
||||||
return registry
|
return registry
|
||||||
|
|
|
@ -132,7 +132,7 @@ public class MyApplication {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
ObservationRegistry<ObservationRegistry> observationRegistry() {
|
ObservationRegistry observationRegistry() {
|
||||||
ObservationRegistry registry = ObservationRegistry.create();
|
ObservationRegistry registry = ObservationRegistry.create();
|
||||||
registry.observationConfig().observationHandler(new ObservationTextPublisher());
|
registry.observationConfig().observationHandler(new ObservationTextPublisher());
|
||||||
return registry;
|
return registry;
|
||||||
|
@ -162,7 +162,7 @@ class MyApplication {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
fun observationRegistry(): ObservationRegistry<ObservationRegistry> {
|
fun observationRegistry(): ObservationRegistry {
|
||||||
ObservationRegistry registry = ObservationRegistry.create()
|
ObservationRegistry registry = ObservationRegistry.create()
|
||||||
registry.observationConfig().observationHandler(ObservationTextPublisher())
|
registry.observationConfig().observationHandler(ObservationTextPublisher())
|
||||||
return registry
|
return registry
|
||||||
|
|
Loading…
Reference in New Issue