Skip to content

Instantly share code, notes, and snippets.

@jhgbrt
Created November 23, 2015 14:55
Show Gist options
  • Save jhgbrt/9df92cb0a140804ea01c to your computer and use it in GitHub Desktop.
Save jhgbrt/9df92cb0a140804ea01c to your computer and use it in GitHub Desktop.
azure api mgr trace
{
"traceId": "[snip]",
"traceEntries": {
"inbound": [
{
"source": "api-inspector",
"timestamp": "2015-11-23T14:38:14.3755947Z",
"elapsed": "00:00:00.0980973",
"data": {
"request": {
"method": "GET",
"url": "https://[snip]",
"headers": [
{
"name": "ocp-apim-subscription-key",
"value": "[SNIP]"
},
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "Accept-Encoding",
"value": "*"
},
{
"name": "Accept-Language",
"value": "null"
},
{
"name": "Host",
"value": "[SNIP]"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0"
}
]
}
}
},
{
"source": "api-inspector",
"timestamp": "2015-11-23T14:38:14.3755947Z",
"elapsed": "00:00:00.0981225",
"data": {
"configuration": {
"api": {
"from": "/[snip]",
"to": {
"scheme": "https",
"host": "[snip]",
"port": 443,
"path": "/v6/",
"queryString": "",
"query": { },
"isDefaultPort": true
}
},
"operation": {
"method": "GET",
"uriTemplate": "/accounts"
},
"user": {
"id": 1,
"groups": [ "Administrators", "Developers" ]
},
"product": { "id": 1 }
}
}
},
{
"source": "request-executor",
"timestamp": "2015-11-23T14:38:14.3755947Z",
"elapsed": "00:00:00.0982639",
"data": {
"message": "Request is being forwarded to the backend service.",
"request": {
"method": "GET",
"url": "https://[snip]",
"headers": [
{
"name": "ocp-apim-subscription-key",
"value": "[snip]"
},
{
"name": "Accept",
"value": "application/xml"
},
{
"name": "Accept-Encoding",
"value": "*"
},
{
"name": "Accept-Language",
"value": "null"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0"
},
{
"name": "X-Forwarded-For",
"value": "84.199.112.210"
},
{
"name": "Content-Length",
"value": "0"
}
]
}
}
}
],
"outbound": [
{
"source": "forward-request",
"timestamp": "2015-11-23T14:38:14.8463157Z",
"elapsed": "00:00:00.5584231",
"data": {
"response": {
"status": {
"code": 406,
"reason": "Not Acceptable"
},
"headers": [
{
"name": "Connection",
"value": "keep-alive"
},
{
"name": "X-Application-Context",
"value": "application:cloud:13900"
},
{
"name": "Content-Length",
"value": "0"
},
{
"name": "Date",
"value": "Mon, 23 Nov 2015 14:38:13 GMT"
},
{
"name": "Server",
"value": "Apache-Coyote/1.1"
},
{
"name": "Via",
"value": "1.1 vegur"
}
]
}
}
},
{
"source": "json-to-xml",
"timestamp": "2015-11-23T14:38:14.8463157Z",
"elapsed": "00:00:00.5584398",
"data": "Content-Type `` is not supported. JSON-to-XML policy was not applied."
},
{
"source": "transfer-response",
"timestamp": "2015-11-23T14:38:14.8463157Z",
"elapsed": "00:00:00.5584890",
"data": { "message": "Response headers have been sent to the caller. Starting to stream the response body." }
},
{
"source": "transfer-response",
"timestamp": "2015-11-23T14:38:14.8463157Z",
"elapsed": "00:00:00.5585957",
"data": { "message": "Response body streaming to the caller is complete." }
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment