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
51 lines
1.8 KiB
Groovy
51 lines
1.8 KiB
Groovy
plugins {
|
|
id 'java-platform'
|
|
}
|
|
|
|
javaPlatform {
|
|
allowDependencies()
|
|
}
|
|
|
|
dependencies {
|
|
api(platform("org.springframework:spring-framework-bom:${springFrameworkVersion}"))
|
|
api(platform("com.fasterxml.jackson:jackson-bom:2.14.1"))
|
|
api(platform("io.projectreactor:reactor-bom:2022.0.0"))
|
|
api(platform("io.micrometer:micrometer-bom:1.10.2"))
|
|
api(platform("io.micrometer:micrometer-tracing-bom:1.0.0"))
|
|
api(platform("org.springframework.data:spring-data-bom:2022.0.0"))
|
|
api(platform("org.springframework.security:spring-security-bom:6.0.0"))
|
|
api(platform("com.querydsl:querydsl-bom:5.0.0"))
|
|
api(platform("io.rsocket:rsocket-bom:1.1.3"))
|
|
api(platform("org.jetbrains.kotlin:kotlin-bom:1.7.10"))
|
|
api(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4"))
|
|
api(platform("org.junit:junit-bom:5.9.1"))
|
|
api(platform("org.mockito:mockito-bom:4.8.1"))
|
|
api(platform("org.testcontainers:testcontainers-bom:1.17.3"))
|
|
api(platform("org.apache.logging.log4j:log4j-bom:2.19.0"))
|
|
|
|
constraints {
|
|
api("com.graphql-java:graphql-java:${graphQlJavaVersion}")
|
|
api("io.micrometer:context-propagation:1.0.0")
|
|
|
|
api("jakarta.annotation:jakarta.annotation-api:2.1.1")
|
|
api("jakarta.servlet:jakarta.servlet-api:6.0.0")
|
|
api("jakarta.validation:jakarta.validation-api:3.0.2")
|
|
api("jakarta.persistence:jakarta.persistence-api:3.1.0")
|
|
|
|
api("com.google.code.findbugs:jsr305:3.0.2")
|
|
|
|
api("org.assertj:assertj-core:3.23.1")
|
|
api("com.jayway.jsonpath:json-path:2.7.0")
|
|
api("org.skyscreamer:jsonassert:1.5.1")
|
|
|
|
api("com.h2database:h2:2.1.214")
|
|
api("org.hibernate:hibernate-core:6.1.5.Final")
|
|
api("org.hibernate.validator:hibernate-validator:8.0.0.Final")
|
|
api("org.mongodb:bson:4.8.0")
|
|
api("org.mongodb:mongodb-driver-core:4.8.0")
|
|
api("org.mongodb:mongodb-driver-reactivestreams:4.8.0")
|
|
api("org.mongodb:mongodb-driver-sync:4.8.0")
|
|
}
|
|
|
|
}
|