I’m trying to get the response + request for the total time it takes for each request. i’m using this for a message logging policy on a cloud instance of Apigee Edge. I used a javascript policy to get the variables for timestamps but I keep getting “null” failures
here is my code
var isoSystemTimeStamp = new Date(context.getVariable("client.received.start.timestamp")).toISOString();
context.setVariable("loggingIsoSystemTimeStamp", isoSystemTimeStamp);