Azure APIM - 跟踪和故障排除?

Azure APIM - tracing and troubleshooting?

我已经在 Azure kubernetes 上部署了我的应用程序,我正在使用 APIM 公开 API 服务。

我想跟踪传入的请求以了解完整的执行过程。例如:APIM.

处理请求需要多长时间

有什么方法可以在 azure APIM 中跟踪个人请求?

如果您在 Azure API 管理中使用 Products,则有一个 administrator 订阅密钥,它允许您监控每个在 APIM.

中执行的步骤

请查看以下link以获得更详细的信息:

https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector

基本上,您必须添加此 subscription-key 并添加一个 Ocp-Apim-Trace:true header 以接收 Ocp-Apim-Trace-Location header,这是一个 link 到 json 包含每个执行步骤的文件。