public Map < String , Object > snapshotTracingData ( ) { Map < String , Object > traceMap = new LinkedHashMap <> ( ) ; traceMap . put ( "version" , 1L ) ; traceMap . put ( "startTime" , rfc3339 ( startRequestTime ) ) ; traceMap . put ( "endTime" , rfc3339 ( Instant . now ( ) ) ) ; traceMap . put ( "duration" , System . nanoTime ( ) - startRequestNanos ) ; traceMap . put ( "parsing" , copyMap ( parseMap ) ) ; traceMap . put ( "validation" , copyMap ( validationMap ) ) ; traceMap . put ( "execution" , executionData ( ) ) ; return traceMap ; }
This will snapshot this tracing and return a map of the results