如何通过资源ID和Operation Id生成Application Insights端到端事务页面链接?
已知Application Insights资源ID和Operation Id,生成端到端事务详情页URL的方法
可以直接生成目标URL,无需依赖eventId,具体格式如下:
https://portal.azure.com/#blade/AppInsightsExtension/TransactionDetailsBlade/telemetryComponentId/{资源ID}/operationId/{OperationId}
参数说明:
{资源ID}:替换为你的Application Insights实例的完整资源ID,可在Azure门户对应AI实例的属性页面获取,格式示例:/subscriptions/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/你的资源组名/providers/microsoft.insights/components/你的AI实例名称{OperationId}:替换为你需要查看的事务对应的Operation Id
使用验证:
替换参数后直接在浏览器打开该URL,会直接跳转至对应Operation Id的端到端事务详情页面,效果与在Application Insights门户内打开完全一致,刚好满足从Grafana跳转查看异常请求事务的需求。
内容的提问来源于stack exchange,提问作者Iain Brown
相关产品推荐
相关产品推荐

