diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/observation/graphql/GraphQlObservationAutoConfiguration.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/observation/graphql/GraphQlObservationAutoConfiguration.java index e38b4959e5..1eb6af969e 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/observation/graphql/GraphQlObservationAutoConfiguration.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/observation/graphql/GraphQlObservationAutoConfiguration.java @@ -70,7 +70,7 @@ public class GraphQlObservationAutoConfiguration { @ConditionalOnBean(Propagator.class) @ConditionalOnMissingBean @Order(Ordered.HIGHEST_PRECEDENCE + 1) - public PropagationWebGraphQlInterceptor propagationWebGraphQlInterceptor(Propagator propagator) { + PropagationWebGraphQlInterceptor propagationWebGraphQlInterceptor(Propagator propagator) { return new PropagationWebGraphQlInterceptor(propagator); } diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/observation/graphql/GraphQlObservationAutoConfigurationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/observation/graphql/GraphQlObservationAutoConfigurationTests.java index a35161368c..f5f1441076 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/observation/graphql/GraphQlObservationAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/observation/graphql/GraphQlObservationAutoConfigurationTests.java @@ -134,6 +134,7 @@ class GraphQlObservationAutoConfigurationTests { WebGraphQlHandler webGraphQlHandler() { return mock(WebGraphQlHandler.class); } + } @Configuration(proxyBeanMethods = false) @@ -143,6 +144,7 @@ class GraphQlObservationAutoConfigurationTests { Propagator propagator() { return mock(Propagator.class); } + } }