@PublicApi public class TracingInstrumentation extends SimpleInstrumentation
Instrumentation implementation uses TracingSupport to
capture tracing information and puts it into the ExecutionResult| Modifier and Type | Class and Description |
|---|---|
static class |
TracingInstrumentation.Options |
INSTANCE| Constructor and Description |
|---|
TracingInstrumentation() |
TracingInstrumentation(TracingInstrumentation.Options options) |
| Modifier and Type | Method and Description |
|---|---|
InstrumentationContext<java.lang.Object> |
beginFieldFetch(InstrumentationFieldFetchParameters parameters)
This is called just before a field
DataFetcher is invoked. |
InstrumentationContext<Document> |
beginParse(InstrumentationExecutionParameters parameters)
This is called just before a query is parsed.
|
InstrumentationContext<java.util.List<ValidationError>> |
beginValidation(InstrumentationValidationParameters parameters)
This is called just before the parsed query document is validated.
|
InstrumentationState |
createState()
This will be called just before execution to create an object that is given back to all instrumentation methods
to allow them to have per execution request state
|
java.util.concurrent.CompletableFuture<ExecutionResult> |
instrumentExecutionResult(ExecutionResult executionResult,
InstrumentationExecutionParameters parameters)
This is called to allow instrumentation to instrument the execution result in some way
|
beginExecuteOperation, beginExecution, beginExecutionStrategy, beginFieldclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginExecuteOperation, beginExecution, beginExecutionStrategy, beginField, beginFieldComplete, beginFieldComplete, beginFieldFetch, beginFieldListComplete, beginFieldListComplete, beginParse, beginSubscribedFieldEvent, beginSubscribedFieldEvent, beginValidation, createState, instrumentDataFetcher, instrumentDataFetcher, instrumentDocumentAndVariables, instrumentDocumentAndVariables, instrumentExecutionContext, instrumentExecutionContext, instrumentExecutionInput, instrumentExecutionInput, instrumentExecutionResult, instrumentSchema, instrumentSchemapublic TracingInstrumentation()
public TracingInstrumentation(TracingInstrumentation.Options options)
public InstrumentationState createState()
Instrumentationpublic java.util.concurrent.CompletableFuture<ExecutionResult> instrumentExecutionResult(ExecutionResult executionResult, InstrumentationExecutionParameters parameters)
InstrumentationexecutionResult - CompletableFuture of the result to instrumentparameters - the parameters to this steppublic InstrumentationContext<java.lang.Object> beginFieldFetch(InstrumentationFieldFetchParameters parameters)
InstrumentationDataFetcher is invoked.beginFieldFetch in interface InstrumentationbeginFieldFetch in class SimpleInstrumentationparameters - the parameters to this stepInstrumentationContext object that will be called back when the step endspublic InstrumentationContext<Document> beginParse(InstrumentationExecutionParameters parameters)
InstrumentationbeginParse in interface InstrumentationbeginParse in class SimpleInstrumentationparameters - the parameters to this stepInstrumentationContext object that will be called back when the step endspublic InstrumentationContext<java.util.List<ValidationError>> beginValidation(InstrumentationValidationParameters parameters)
InstrumentationbeginValidation in interface InstrumentationbeginValidation in class SimpleInstrumentationparameters - the parameters to this stepInstrumentationContext object that will be called back when the step ends