Package graphql.execution.instrumentation
package graphql.execution.instrumentation
-
ClassDescriptionThis allows you to chain together a number of
Instrumentationimplementations and run them in sequence.FieldFetchingInstrumentationContext is returned back from theInstrumentation.beginFieldFetching(InstrumentationFieldFetchParameters, InstrumentationState)method, and it's much like the normalInstrumentationContexttype 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.AnInstrumentationimplementation 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 ofChainedInstrumentationwill call a list ofInstrumentations but it will never back on the returnedInstrumentationContextobjects, hence it is only suitable to certain use cases.Deprecated.A simple implementation ofInstrumentationContextAn implementation ofInstrumentationthat does nothing.
SimplePerformantInstrumentationinstead as a base class.