-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Describe the bug
For a couple of the methods on Instrumentation (beginParse and beginValidation) the onDispatched method on the returned InstrumentationContext is not called.
To Reproduce
My Instrumentation, which is later passed into a GraphQL instance:
public class TestInstrumentation extends SimpleInstrumentation {
@Override
public InstrumentationContext<Document> beginParse(InstrumentationExecutionParameters parameters) {
return new InstrumentationContext<>() {
@Override
public void onDispatched(CompletableFuture<Document> result) {
System.out.println("Dispatched");
}
@Override
public void onCompleted(Document result, Throwable t) {
System.out.println("Completed");
}
};
}
}
Expected:
Dispatched
Completed
Actual:
Completed