PostExecutionInterceptorContext extends AbstractInterceptorContext<PreExecutionInterceptorContext> { public PostExecutionInterceptorContext excludeCallTree(String reason) { if (!mustPreserveCallTree) { logger.debug("Excluding call tree because {}", reason); excludeCallTree = true; } return this; } PostExecutionInterceptorContext(SpanContextInformation spanContext); PostExecutionInterceptorContext excludeCallTree(String reason); PostExecutionInterceptorContext mustPreserveCallTree(String reason); boolean isExcludeCallTree();  }
@Test public void excludeCallTree() throws Exception { assertFalse(interceptorContext.isExcludeCallTree()); interceptorContext.excludeCallTree("reasons"); assertTrue(interceptorContext.isExcludeCallTree()); }