Commit Graph

35 Commits

Author SHA1 Message Date
Brian Clozel
f012a460ae Upgrade dependencies
This commit upgrades mandatory and optional dependencies:

* Spring Data 2023.0.0-M3
* Micrometer 1.11.0-M2
* Micrometer Tracing 1.11.0-M2
* Kotlin 1.8.10

Closes gh-648
Closes gh-649
Closes gh-650
Closes gh-652
2023-03-20 18:40:54 +01:00
Brian Clozel
c829053455 Merge branch '1.1.x' 2023-03-20 18:25:44 +01:00
Brian Clozel
d28d9091d7 Upgrade dependencies
This commit upgrades mandatory and optional dependencies:

* Spring Framework 6.0.7
* GraphQL Java 19.3
* Reactor 2022.0.5
* Micrometer 1.10.5
* Micrometer Tracing 1.0.3
* Spring Data 2022.0.3
* Spring Security 6.0.2

Closes gh-641
Closes gh-642
Closes gh-643
Closes gh-644
Closes gh-645
Closes gh-646
Closes gh-647
2023-03-20 18:20:43 +01:00
rstoyanchev
104eccb4d9 Support for pagination
ConnectionTypeVisitor to decorate DataFetchers for Connection fields
in order to adapt Window, Slice, and others to Connection.

A ScrollRequest controller method argument to inject the ScrollPosition
and the number of elements requested.

SortStrategy for an application to customize how to extract sort
details from GraphQL arguments.

See gh-620
2023-03-17 16:50:32 +00:00
Brian Clozel
312446ffa2 Upgrade to Spring Data 2022.0.2
Closes gh-617
2023-02-21 11:41:56 +01:00
Brian Clozel
0e358393cb Upgrade to Reactor 2022.0.3
Closes gh-616
2023-02-21 11:41:26 +01:00
Brian Clozel
beafa43f25 Upgrade other dependencies
* Spring Framework 6.0.4
* Spring Data 2022.0.1
* Jackson 2.14.2
* Reactor 2022.0.2
2023-02-14 16:06:14 +01:00
Brian Clozel
e3b73e84e1 Upgrade to Micrometer Tracing 1.0.2
Closes gh-614
2023-02-14 16:04:57 +01:00
Brian Clozel
7489e95d9c Upgrade to Context Propagation 1.0.2
Closes gh-613
2023-02-14 16:04:24 +01:00
Brian Clozel
1d3701d3b4 Upgrade to Micrometer 1.10.4
Closes gh-612
2023-02-14 16:03:42 +01:00
Brian Clozel
ef7784ee1c Refactor Kotlin configuration in build 2023-01-11 10:04:02 +01:00
Brian Clozel
1e51daa225 Upgrade to Spring Security 6.0.1
Closes gh-587
2022-12-19 20:56:49 +01:00
Brian Clozel
fc81402659 Upgrade to Reactor 2022.0.1
Closes gh-586
2022-12-19 20:56:08 +01:00
Brian Clozel
a43c92854f Fix NullPointerException in Tracing support
Prior to this commit, using the tracing support could result in an
NullPointerException since the instrumentation expected the tracing
propagation information to be always available from the request
extensions.

This commit improves the strategy for extracing the inbound propagation
information.

First, the instrumentation now looks up the propagation information in
the GraphQL context first, then in the request extensions as a fallback.
We ensure that no NPE can be raised if the information is missing.
Some clients might change the propagation information in the request
extensions, but in the HTTP world, most clients will send those as HTTP
headers. We are adding a new `PropagationWebGraphQlInterceptor` that can
be configured on the application to copy the relevant HTTP headers from
the HTTP request to the GraphQL context. For other transports, we
currently advise the request extensions - both WebSocket and RSocket
multiplex over the same transport message, making this approach
impossible.

Fixes gh-547
2022-12-02 09:05:23 +01:00
Brian Clozel
5fe8123126 Upgrade to Micrometer 1.10.2
Closes gh-556
2022-12-01 17:43:24 +01:00
Brian Clozel
2de2c9fcea Upgrade to Reactor 2022.0.0
Closes gh-538
2022-11-22 11:09:05 +01:00
Brian Clozel
0dfe9e5706 Upgrade to Micrometer 1.10.1
Closes gh-539
2022-11-22 11:08:27 +01:00
Brian Clozel
2c2307abba Upgrade to Spring Data 2022.0.0
Closes gh-540
2022-11-22 11:07:50 +01:00
Brian Clozel
b3b1bca7b4 Upgrade to Spring Security 6.0.0
Closes gh-541
2022-11-22 11:07:28 +01:00
Brian Clozel
edc10144c5 Upgrade to Context Propagation 1.0.0
Closes gh-542
2022-11-22 11:06:55 +01:00
Brian Clozel
7894dd5dbe Upgrade to Spring Framework 6.0.0
This change aligns with the Jakarta API requirements in Spring
Framework.
This commit also upgrades optional dependencies with the latest compatible
versions.

Closes gh-543
2022-11-22 11:04:57 +01:00
Brian Clozel
e10674c7ad Upgrade to Spring Security 6.0.0-RC1
Closes gh-515
2022-10-18 16:46:50 +02:00
Brian Clozel
68f07d4165 Upgrade to Spring Data 2022.0.0-RC1
Closes gh-514
2022-10-18 16:46:15 +02:00
Brian Clozel
5f99f8a449 Upgrade to Micrometer 1.10.0-RC1
Closes gh-513
2022-10-18 16:45:47 +02:00
Brian Clozel
6b7a633741 Upgrade to Reactor 2022.0.0-RC1
Closes gh-512
2022-10-18 16:45:03 +02:00
Brian Clozel
6ebdc46fa3 Upgrade to Jackson 2.13.4.20221013 2022-10-18 16:42:05 +02:00
Brian Clozel
1b19189500 Add Observability support
Prior to this commit, metrics instrumentation was provided by Spring
Boot, using Micrometer metrics. The `Instrumentation` would publish two
timers and a counter, but would not support tracing.

This commit replaces the former with a dedicated support in Spring for
GraphQL directly. This uses the new `Observation` API from Micrometer
and publishes two observations:

* a request execution observation, with timing and tracing included
* a data fetching observation with the request execution as a parent
  observation

Closes gh-501
2022-10-18 15:51:48 +02:00
Brian Clozel
c414411278 Upgrade dependencies
* switch to expected Hibernate version
* upgrade log4j2 dependency
2022-10-11 14:26:22 +02:00
Brian Clozel
39d97ef7fc Upgrade to Context Propagation 1.0.0-RC1
Closes gh-505
2022-10-11 14:26:02 +02:00
Brian Clozel
00ca12f414 Switch to Reactor and Context Propagation SNAPSHOTs 2022-10-06 15:56:39 +02:00
Brian Clozel
a69b7bc687 Upgrade dependencies 2022-09-20 12:11:48 +02:00
rstoyanchev
f052a51307 Upgrade to Reactor 2022.0.0 snapshots 2022-09-06 12:37:46 +01:00
rstoyanchev
973fc567f3 Upgrade to Micrometer context-propagation snapshots
Closes gh-477
2022-09-06 12:33:56 +01:00
Brian Clozel
304b3afd3b Merge branch '1.0.x' 2022-09-01 14:27:28 +02:00
Brian Clozel
c12b46fc11 Replace dependency management plugin with Gradle platform support 2022-09-01 11:43:31 +02:00