Skip to content

Commit d261b29

Browse files
committed
Upgrade to GraphQL Java 20.0
See gh-596
1 parent 009c5eb commit d261b29

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description = "Spring for GraphQL"
33
ext {
44
moduleProjects = [project(":spring-graphql"), project(":spring-graphql-test")]
55
springFrameworkVersion = "6.0.3"
6-
graphQlJavaVersion = "19.2"
6+
graphQlJavaVersion = "20.0"
77
springBootVersion = "3.0.0"
88
}
99

spring-graphql/src/main/java/org/springframework/graphql/observation/GraphQlObservationInstrumentation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import graphql.ExecutionResult;
2222
import graphql.execution.instrumentation.InstrumentationContext;
2323
import graphql.execution.instrumentation.InstrumentationState;
24-
import graphql.execution.instrumentation.SimpleInstrumentation;
2524
import graphql.execution.instrumentation.SimpleInstrumentationContext;
25+
import graphql.execution.instrumentation.SimplePerformantInstrumentation;
2626
import graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters;
2727
import graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters;
2828
import graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters;
@@ -31,8 +31,8 @@
3131
import io.micrometer.observation.ObservationRegistry;
3232

3333
/**
34-
* {@link SimpleInstrumentation} that creates {@link Observation observations}
35-
* for GraphQL requests and data fetcher operations.
34+
* {@link graphql.execution.instrumentation.Instrumentation} that creates
35+
* {@link Observation observations} for GraphQL requests and data fetcher operations.
3636
* <p>GraphQL request instrumentation measures the execution time of requests
3737
* and collects information from the {@link ExecutionRequestObservationContext}.
3838
* A request can perform many data fetching operations.
@@ -47,7 +47,7 @@
4747
* @author Brian Clozel
4848
* @since 1.1.0
4949
*/
50-
public class GraphQlObservationInstrumentation extends SimpleInstrumentation {
50+
public class GraphQlObservationInstrumentation extends SimplePerformantInstrumentation {
5151

5252
private static final String OBSERVATION_KEY = "micrometer.observation";
5353

0 commit comments

Comments
 (0)