如何从Azure API管理登录到App Insights发送请求 [英] How can I log to App Insights from Azure API Management 'send-request'
本文介绍了如何从Azure API管理登录到App Insights发送请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Azure API管理策略,其中包含";Send-Request&Quot;:
<send-request mode="new" response-variable-name="response" timeout="5" ignore-error="false">
<set-url>https://www.bing.com</set-url>
<set-method>GET</set-method>
</send-request>
App Insights显示对操作的请求,但不显示";发送请求";URL。
API管理中的App Insights配置:
抽样:100% 详细:详细 请求负载:8192
查询:
union
requests,
dependencies
| order by timestamp
结果:
推荐答案
API Management integrated with Application Insights仅记录以下项目:
- 请求遥测项目,对于每个传入请求(前端请求、前端响应),
- 依赖遥测项,对于每个转发到后端服务的请求(后端请求、后端响应),
- 每个失败的请求的异常遥测项目。
遗憾的是,它不记录来自策略的API依赖项/请求。它将仅在出现故障时记录异常。
您可以发布反馈here。
这篇关于如何从Azure API管理登录到App Insights发送请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文