[英]Configure Application Inisghts for Azure Function App (Terraform)
[英]How to log the Event URL field in Kentico for 404 pages in Azure Application Inisghts?
我想將Kentico Portal日志中的“事件URL”字段記錄到404請求的Azure Application Insights中。 由於我在Kentico Portal中將自定義頁面更改為404錯誤,因此我在AppInsights的請求表中僅獲得URL字段的“ PortalTemplate.apsx”。
我們已經在GitHub上將此作為推薦 -使用RawUrl
而不是Request.Url
。
如此處所述,當請求重定向到自定義錯誤頁面時,RawUrl可提供更好的解決方案: Request.RawUrl與Request.Url
請在GitHub上解決該問題。 作為一種變通方法,現在你可以替換OperationNameTelemetryInitializer在ApplicaitonInsights.config
自己的實現它使用RawUrl
代替的Url
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.