Skip to content

Instantly share code, notes, and snippets.

@james-otten
Created May 19, 2020
Embed
What would you like to do?
Example of Azure API Management tracing data
{
"traceId": "0a617b1c-b3d7-48fd-859a-ed06b8c1bf43",
"traceEntries": {
"inbound": [
{
"source": "api-inspector",
"timestamp": "2020-05-19T02:23:55.4709717Z",
"elapsed": "00:00:00.6605097",
"data": {
"request": {
"method": "POST",
"url": "https://<REDACTED>-api-mgmt.azure-api.net/echo/resource",
"headers": [
{
"name": "Ocp-Apim-Subscription-Key",
"value": "<REDACTED>"
},
{
"name": "Content-Length",
"value": "88"
},
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Host",
"value": "<REDACTED>-api-mgmt.azure-api.net"
}
]
}
}
},
{
"source": "api-inspector",
"timestamp": "2020-05-19T02:23:55.4866316Z",
"elapsed": "00:00:00.6714891",
"data": {
"configuration": {
"api": {
"from": "/echo",
"to": {
"scheme": "http",
"host": "echoapi.cloudapp.net",
"port": 80,
"path": "/api",
"queryString": "",
"query": {},
"isDefaultPort": true
},
"version": null,
"revision": "1"
},
"operation": {
"method": "POST",
"uriTemplate": "/resource"
},
"user": "-",
"product": "-"
}
}
},
{
"source": "cors",
"timestamp": "2020-05-19T02:23:56.2368977Z",
"elapsed": "00:00:01.4182882",
"data": "Origin header was missing or empty and the request was classified as not cross-domain. CORS policy was not applied."
},
{
"source": "json-to-xml",
"timestamp": "2020-05-19T02:23:56.4397276Z",
"elapsed": "00:00:01.6291293",
"data": "JSON-to-XML policy was applied. Original Content-Length header was removed as its value was invalidated. Content-Type header was set to 'application/xml'"
},
{
"source": "set-header",
"timestamp": "2020-05-19T02:23:56.4710075Z",
"elapsed": "00:00:01.6598630",
"data": {
"message": "Specified value was appended to the original header value. See the new header value below.",
"header": {
"name": "AuthHeader",
"value": "S3CR3T"
}
}
},
{
"source": "set-query-parameter",
"timestamp": "2020-05-19T02:23:56.5022331Z",
"elapsed": "00:00:01.6869739",
"data": {
"message": "Request URL was updated with the query value.",
"request": {
"url": "http://echoapi.cloudapp.net/api/resource?password=P@SSW0RD"
}
}
}
],
"backend": [
{
"source": "forward-request",
"timestamp": "2020-05-19T02:23:56.6750939Z",
"elapsed": "00:00:01.8565106",
"data": {
"message": "Request is being forwarded to the backend service. Timeout set to 300 seconds",
"request": {
"method": "POST",
"url": "http://echoapi.cloudapp.net/api/resource?password=P@SSW0RD",
"headers": [
{
"name": "Host",
"value": "echoapi.cloudapp.net"
},
{
"name": "Transfer-Encoding",
"value": "chunked"
},
{
"name": "Ocp-Apim-Subscription-Key",
"value": "<REDACTED>"
},
{
"name": "AuthHeader",
"value": "S3CR3T"
},
{
"name": "Content-Type",
"value": "application/xml"
},
{
"name": "X-Forwarded-For",
"value": "<REDACTED>"
}
]
}
}
},
{
"source": "forward-request",
"timestamp": "2020-05-19T02:23:57.2712963Z",
"elapsed": "00:00:02.4616234",
"data": {
"response": {
"status": {
"code": 200,
"reason": "OK"
},
"headers": [
{
"name": "Pragma",
"value": "no-cache"
},
{
"name": "Transfer-Encoding",
"value": "chunked"
},
{
"name": "Host",
"value": "echoapi.cloudapp.net"
},
{
"name": "Ocp-Apim-Subscription-Key",
"value": "<REDACTED>"
},
{
"name": "AuthHeader",
"value": "S3CR3T"
},
{
"name": "X-Forwarded-For",
"value": "<REDACTED>"
},
{
"name": "Cache-Control",
"value": "no-cache"
},
{
"name": "Content-Type",
"value": "application/xml"
},
{
"name": "Expires",
"value": "-1"
},
{
"name": "Server",
"value": "Microsoft-IIS/8.5"
},
{
"name": "X-AspNet-Version",
"value": "4.0.30319"
},
{
"name": "X-Powered-By",
"value": "Azure API Management - http://api.azure.com/,ASP.NET"
},
{
"name": "Date",
"value": "Tue, 19 May 2020 02:23:56 GMT"
}
]
}
}
}
],
"outbound": [
{
"source": "set-header",
"timestamp": "2020-05-19T02:23:57.2712963Z",
"elapsed": "00:00:02.4619459",
"data": "Header `AuthHeader` was removed."
},
{
"source": "set-header",
"timestamp": "2020-05-19T02:23:57.2712963Z",
"elapsed": "00:00:02.4619630",
"data": "Header `X-AspNet-Version` was removed."
},
{
"source": "set-header",
"timestamp": "2020-05-19T02:23:57.2712963Z",
"elapsed": "00:00:02.4619660",
"data": "Header `X-Forwarded-For` was removed."
},
{
"source": "set-header",
"timestamp": "2020-05-19T02:23:57.2712963Z",
"elapsed": "00:00:02.4619679",
"data": "Header `X-Powered-By` was removed."
},
{
"source": "set-header",
"timestamp": "2020-05-19T02:23:57.2712963Z",
"elapsed": "00:00:02.4619832",
"data": {
"message": "Specified value was assigned to the header (see below).",
"header": {
"name": "Host",
"value": "<REDACTED>-api-mgmt.azure-api.net"
}
}
},
{
"source": "transfer-response",
"timestamp": "2020-05-19T02:23:57.3306201Z",
"elapsed": "00:00:02.5216010",
"data": {
"message": "Response headers have been sent to the caller."
}
},
{
"source": "transfer-response",
"timestamp": "2020-05-19T02:23:57.4866104Z",
"elapsed": "00:00:02.6770479",
"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