Package graphql.execution.instrumentation
package graphql.execution.instrumentation
-
ClassDescriptionThis allows you to chain together a number of
Instrumentation
implementations and run them in sequence.FieldFetchingInstrumentationContext is returned back from theInstrumentation.beginFieldFetching(InstrumentationFieldFetchParameters, InstrumentationState)
method, and it's much like the normalInstrumentationContext
type except it also gives the value that was returned by a fieldsDataFetcher
.Provides the capability to instrument the execution steps of a GraphQL query.When aInstrumentation
.'beginXXX()' method is called then it must return a non null InstrumentationContext that will be invoked when the step is first dispatched and then when it completes.AnInstrumentation
implementation can create this as a stateful object that is then passed to each instrumentation method, allowing state to be passed down with the request executionThis version ofChainedInstrumentation
will call a list ofInstrumentation
s but it will never back on the returnedInstrumentationContext
objects, hence it is only suitable to certain use cases.Deprecated.A simple implementation ofInstrumentationContext
An implementation ofInstrumentation
that does nothing.
SimplePerformantInstrumentation
instead as a base class.