-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(apim): Add new tracing API (#23800)
* Add new tracing api * Remove TODOs descriptions * Improve descriptions * Fix dot * Add missing examples * prettier fixes * Fix model and semantic problems * Remove get prefix in post operations * Use list prefix * Fix PR comments
- Loading branch information
Showing
5 changed files
with
373 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...t/preview/2023-03-01-preview/examples/ApiManagementGatewayInvalidateDebugCredentials.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2023-03-01-preview", | ||
"subscriptionId": "subid", | ||
"gatewayId": "gw1" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...agement/preview/2023-03-01-preview/examples/ApiManagementGatewayListDebugCredentials.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2023-03-01-preview", | ||
"subscriptionId": "subid", | ||
"gatewayId": "gw1", | ||
"parameters": { | ||
"credentialsExpireAfter": "PT1H", | ||
"apiId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/a1", | ||
"purposes": [ | ||
"tracing" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"token": "p=tracing&aid=a1&ex=20230504000000&sn=ZdfxSJoCsOJE0/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/8LchGl7gu/Q==" | ||
} | ||
} | ||
} | ||
} |
112 changes: 112 additions & 0 deletions
112
...soft.ApiManagement/preview/2023-03-01-preview/examples/ApiManagementGatewayListTrace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"parameters": { | ||
"serviceName": "apimService1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2023-03-01-preview", | ||
"subscriptionId": "subid", | ||
"gatewayId": "gw1", | ||
"parameters": { | ||
"traceId": "CrDvXXXXXXXXXXXXXVU3ZA2-1" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"serviceName": "apimService1", | ||
"traceId": "1e0447d4-XXXX-XXXX-XXXX-dbdb8098a0d3", | ||
"traceEntries": { | ||
"inbound": [ | ||
{ | ||
"source": "api-inspector", | ||
"timestamp": "2023-05-03T12:03:04.6899436Z", | ||
"elapsed": "00:00:00.2983315", | ||
"data": { | ||
"request": { | ||
"method": "GET", | ||
"url": "https://proxy.msitesting.net/6452XXXXXXXXXXXX9c2facb1/64524dXXXXXXXXXXXX2facb3?subscription-key=117313e70XXXXXXXXXXXX38ba4658ca3", | ||
"headers": [ | ||
{ | ||
"name": "Host", | ||
"value": "proxy.msitesting.net" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"source": "api-inspector", | ||
"timestamp": "2023-05-03T12:03:04.6969650Z", | ||
"elapsed": "00:00:00.3046329", | ||
"data": { | ||
"configuration": { | ||
"api": { | ||
"from": "/6452XXXXXXXXXXXX9c2facb1", | ||
"to": { | ||
"scheme": "http", | ||
"host": "msitesting.net", | ||
"port": 80, | ||
"path": "/", | ||
"queryString": "", | ||
"query": {}, | ||
"isDefaultPort": true | ||
}, | ||
"version": null, | ||
"revision": "1" | ||
}, | ||
"operation": { | ||
"method": "GET", | ||
"uriTemplate": "/64524dXXXXXXXXXXXX2facb3" | ||
}, | ||
"user": "-", | ||
"product": "-" | ||
} | ||
} | ||
}, | ||
{ | ||
"source": "cors", | ||
"timestamp": "2023-05-03T12:03:04.9901631Z", | ||
"elapsed": "00:00:00.5972352", | ||
"data": "Origin header was missing or empty and the request was classified as not cross-domain. CORS policy was not applied." | ||
}, | ||
{ | ||
"source": "set-status", | ||
"timestamp": "2023-05-03T12:03:05.0031202Z", | ||
"elapsed": "00:00:00.6107970", | ||
"data": { | ||
"message": [ | ||
"Response status code was set to 200", | ||
"Response status reason was set to 'OK'" | ||
] | ||
} | ||
}, | ||
{ | ||
"source": "return-response", | ||
"timestamp": "2023-05-03T12:03:05.0086543Z", | ||
"elapsed": "00:00:00.6164228", | ||
"data": { | ||
"message": "Return response was applied", | ||
"response": { | ||
"status": { | ||
"code": "OK", | ||
"reason": "OK" | ||
}, | ||
"headers": [] | ||
} | ||
} | ||
} | ||
], | ||
"outbound": [ | ||
{ | ||
"source": "transfer-response", | ||
"timestamp": "2023-05-03T12:03:05.0438287Z", | ||
"elapsed": "00:00:00.6510195", | ||
"data": { | ||
"message": "Response has been sent to the caller in full" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |