简体   繁体   English

Azure APIM - 跟踪和故障排除?

[英]Azure APIM - tracing and troubleshooting?

I have deployed my application on Azure kubernetes and I am using APIM to expose THE API services.我已经在 Azure kubernetes 上部署了我的应用程序,并且我正在使用 APIM 来公开 API 服务。

I want to trace the incoming requests to understand the complete execution.我想跟踪传入的请求以了解完整的执行。 Eg: how long it takes to process the request by the APIM.例如:APIM 处理请求需要多长时间。

Is there any way to trace the individual request in azure APIM ?有没有办法在 azure APIM 中跟踪单个请求?

If you use Products in Azure API Management, there's an administrator subscription key, that allows you to monitor every step executed in APIM.如果你在 Azure API 管理中使用产品,则有一个管理员订阅密钥,它允许你监视在 APIM 中执行的每个步骤。

Please check the following link to get more detailed information:请查看以下链接以获取更多详细信息:

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

Basically, you have to add this subscription-key and also add an Ocp-Apim-Trace: true header to receive the Ocp-Apim-Trace-Location header, which is a link to a json file containing each executed step.基本上,您必须添加此订阅密钥并添加一个Ocp-Apim-Trace: true标头以接收Ocp-Apim-Trace-Location标头,该标头是指向包含每个执行步骤的json文件的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM