Class PropagationWebGraphQlInterceptor

java.lang.Object
org.springframework.graphql.observation.PropagationWebGraphQlInterceptor
All Implemented Interfaces:
WebGraphQlInterceptor

public class PropagationWebGraphQlInterceptor extends Object implements WebGraphQlInterceptor
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
  • Constructor Details

    • PropagationWebGraphQlInterceptor

      public PropagationWebGraphQlInterceptor(io.micrometer.tracing.propagation.Propagator propagator)
      Create an interceptor that leverages the field names used by the given Propagator instance.
      Parameters:
      propagator - the propagator that will be used for tracing support
  • Method Details