HI We are seeing a discrepance how the analytics records are interpreted on SaaS which is sent from EMG. The latency is not captured correctly, the request,target,request processing latencies are seem to be incorrect. Below is the record send by EMG :
{
"records":[
{
"client_received_start_timestamp":1505763402520,
"client_received_end_timestamp":1505763402521,
"recordType":"APIAnalytics",
"apiproxy":"edgemicro_helloword",
"request_uri":"http://localhost:8000/hello?apikey=jNPQKYWRWCo6YNrRIWuXHMCSG6HZwUUL",
"request_path":"/hello",
"request_verb":"GET",
"client_ip":"::1",
"useragent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36",
"apiproxy_revision":"2",
"response_status_code":200,
"client_sent_start_timestamp":1505763457342,
"client_sent_end_timestamp":1505763457343,
"developer_app":"EMG MJF TEST APP",
"access_token":null,
"client_id":"PRD5126ExuzTAQQt1qRHahLbJxFutUV8",
"api_product":"EMG TEST PRODUCT 2"
}
]
}
As per above record below are calculations
Average of Request Processing Latency – 1ms (client_received_end_timestamp - client_received_start_timestamp)
Average of Response Processing Latency – 1ms (client_sent_end_timestamp":1505763457343 - client_sent_start_timestamp":1505763457342 )
Average of Target Response Time – 54821ms(client_sent_start_timestamp - client_received_end_timestamp)
But the dashboard shows :
Attached the scrrenshot “EMG Analytics Dashboard.jpg”
But we are not seeing this issue in SaaS transaction when same proxy is called from SaaS.. attachment has SaaS data also
