You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-graphql-docs/modules/ROOT/pages/graalvm-native.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,14 @@
3
3
4
4
Spring Framework 6.0 introduced the support infrastructure for compiling Spring applications to https://www.graalvm.org/22.3/reference-manual/native-image/[GraalVM Native images].
5
5
If you are not familiar with GraalVM in general, how this differs from applications deployed on the JVM and what it means for Spring application,
6
-
please refer to the dedicated {spring-boot-ref-docs}/native-image.html#native-image[Spring Boot 3.0 GraalVM Native Image support documentation].
6
+
please refer to the dedicated {spring-boot-ref-docs}/reference/native-image/introducing-graalvm-native-images.html[Spring Boot 3.x GraalVM Native Image support documentation].
7
7
Spring Boot also documents the https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-with-GraalVM[know limitations with the GraalVM support in Spring].
8
8
9
9
10
10
[[graalvm.graphql-java]]
11
11
== GraphQL Java metadata
12
12
13
-
Since the {spring-boot-ref-docs}/native-image.html#native-image.introducing-graalvm-native-images.key-differences-with-jvm-deployments[static analysis of your application is done at build time],
13
+
Since the {spring-boot-ref-docs}/reference/native-image/introducing-graalvm-native-images.html#native-image.introducing-graalvm-native-images.key-differences-with-jvm-deployments[static analysis of your application is done at build time],
14
14
GraalVM might need extra hints if your application is looking up static resources, performing reflection or creating JDK proxies at runtime.
15
15
16
16
GraphQL Java is performing three tasks at runtime that Native Images are sensible to:
Copy file name to clipboardExpand all lines: spring-graphql-docs/modules/ROOT/pages/graphiql.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ During development, a stock GraphiQL integration is often enough to help develop
7
7
In production, applications can require a custom GraphiQL build, that ships with a company logo or specific authentication support.
8
8
9
9
Spring for GraphQL ships with https://github.com/spring-projects/spring-graphql/blob/main/spring-graphql/src/main/resources/graphiql/index.html[a stock GraphiQL `index.html` page] that uses static resources hosted on the unpkg.com CDN.
10
-
Spring Boot applications can easily {spring-boot-ref-docs}/web.html#web.graphql.graphiql[enable this page with a configuration property].
10
+
Spring Boot applications can easily {spring-boot-ref-docs}/reference/web/spring-graphql.html#web.graphql.graphiql[enable this page with a configuration property].
11
11
12
12
Your application may need a custom GraphiQL build if it requires a setup that doesn't rely on a CDN, or if you wish to customize the user interface.
<3> Finally, map the handler to a specific HTTP endpoint
36
36
<4> Expose this new route through a `RouterFunction` bean
37
37
38
-
You might also need to configure your application to {spring-boot-ref-docs}/web.html#web.servlet.spring-mvc.static-content[serve the relevant static resources].
38
+
You might also need to configure your application to {spring-boot-ref-docs}/reference/web/servlet.html#web.servlet.spring-mvc.static-content[serve the relevant static resources].
Copy file name to clipboardExpand all lines: spring-graphql-docs/modules/ROOT/pages/observability.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
[[observability]]
2
2
= Observability
3
3
4
-
https://micrometer.io/docs/observation[Observability support with Micrometer] is directly instrumented in Spring for GraphQL.
4
+
https://docs.micrometer.io/micrometer/reference/observation.html[Observability support with Micrometer] is directly instrumented in Spring for GraphQL.
5
5
This enables both metrics and traces for GraphQL requests and "non-trivial" data fetching operations.
6
6
Because the GraphQL engine operates on top of a transport layer, you should also {spring-framework-ref-docs}/integration/observability.html[expect observations from the transport], if supported in Spring Framework.
7
7
8
8
Observations are only published if an `ObservationRegistry` is configured in the application.
9
-
You can learn more about {spring-boot-ref-docs}/actuator.html#actuator.metrics[configuring the observability infrastructure in Spring Boot].
9
+
You can learn more about {spring-boot-ref-docs}/reference/actuator/metrics.html[configuring the observability infrastructure in Spring Boot].
10
10
If you would like to customize the metadata produced with the GraphQL observations, you can {spring-framework-ref-docs}/integration/observability.html#observability.config.conventions[configure a custom convention on the instrumentation directly].
11
11
If your application is using Spring Boot, contributing the custom convention as a bean is the preferred way.
0 commit comments