Class PropagationWebGraphQlInterceptor
java.lang.Object
org.springframework.graphql.observation.PropagationWebGraphQlInterceptor
- All Implemented Interfaces:
WebGraphQlInterceptor
@Deprecated(since="1.1.4",
forRemoval=true)
public class PropagationWebGraphQlInterceptor
extends Object
implements WebGraphQlInterceptor
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.1.4 with no replacement.
WebGraphQlInterceptor that copies propagation headers
from the HTTP request to the GraphQLContext.
This makes it possible to propagate tracing information sent by HTTP clients.- Since:
- 1.1.1
- Author:
- Brian Clozel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.graphql.server.WebGraphQlInterceptor
WebGraphQlInterceptor.Chain -
Constructor Summary
ConstructorsConstructorDescriptionPropagationWebGraphQlInterceptor(io.micrometer.tracing.propagation.Propagator propagator) Deprecated, for removal: This API element is subject to removal in a future version.Create an interceptor that leverages the field names used by the givenPropagatorinstance. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<WebGraphQlResponse>intercept(WebGraphQlRequest request, WebGraphQlInterceptor.Chain chain) Deprecated, for removal: This API element is subject to removal in a future version.Intercept a request and delegate to the rest of the chain including other interceptors and aExecutionGraphQlService.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.graphql.server.WebGraphQlInterceptor
andThen, apply
-
Constructor Details
-
PropagationWebGraphQlInterceptor
public PropagationWebGraphQlInterceptor(io.micrometer.tracing.propagation.Propagator propagator) Deprecated, for removal: This API element is subject to removal in a future version.Create an interceptor that leverages the field names used by the givenPropagatorinstance.- Parameters:
propagator- the propagator that will be used for tracing support
-
-
Method Details
-
intercept
public reactor.core.publisher.Mono<WebGraphQlResponse> intercept(WebGraphQlRequest request, WebGraphQlInterceptor.Chain chain) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:WebGraphQlInterceptorIntercept a request and delegate to the rest of the chain including other interceptors and aExecutionGraphQlService.- Specified by:
interceptin interfaceWebGraphQlInterceptor- Parameters:
request- the request which may be aWebSocketGraphQlRequestwhen intercepting a GraphQL request over WebSocketchain- the rest of the chain to execute the request- Returns:
- a
Monowith the response
-