![](/img/trans.png)
[英]How to configure Azure Application Insights for Asp.Net Core 5.0 to send only 4% of Requests and 100% of Exceptions?
[英]How to configure Application Insights to only track the count of calls in an Azure Function App
我有一個 Azure Function 應用程序,該應用程序當前正在運行並每小時處理約 4k 個查詢。 應用程序洞察監視器設置為自動創建時的默認配置。
我想使用應用程序洞察力僅跟蹤每個 API 調用的操作計數。 所有其他遙測和日志數據大多是不必要的,並且會增加使用成本。 如何配置我的 function 應用程序,以便我只能跟蹤每個 HTTP 方法進行了多少次調用?
在應用程序洞察中,無法直接track only how many calls is made per HTTP method
。 您必須跟蹤Request Telemetry
數據,然后使用 kusto 查詢來執行此操作。
以下是一些減少數據的方法:
2.在azure function中添加Startup.cs,然后使用過濾。
Another way I can think of to track only how many calls is made per HTTP method
, is that you can go to the metrics of azure function, and see if there is a related metrics/filter combination which can generate the result.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.