void () { if(mySpan != null) { mySpan.setAttribute("max_awt_delay", getLongestDelay()); mySpan.setAttribute("average_awt_delay", getAverageDelay()); mySpan.end(); } myStopTime = System.currentTimeMillis(); totalTime = myStopTime - myStartTime; executor.shutdownNow(); }