我們如何將Application Insight與服務結構無狀態WebAPI集成? 我們需要爲它配置單獨的監聽器嗎?將Application Insight與服務結構無縫集成WebAPI
0
A
回答
0
添加NuGet包:Microsoft.ApplicationInsights.ServiceFabric.Native
,將其配置:
var host = new WebHostBuilder()
// Adding Service Fabric Telemetry Initializer
.ConfigureServices(services => services.AddSingleton<ITelemetryInitializer>((serviceProvider) => new FabricTelemetryInitializer()))
// Configuring Applciation Insights
.UseApplicationInsights()
.Build();
host.Run();
0
我已經爲Owin託管的完整.NET Framework的服務結構做了一個示例應用程序。該示例包括依賴注入和應用程序洞察力 https://github.com/duongthaiha/ServiceFarbricSampleApplication
+0
謝謝你會試試這個! – Pushkar
相關問題
- 1. 將GWT與CDI集成(焊縫/焊縫)
- 2. Application Insight Request Region
- 3. DataAnnotation JQuery無縫集成?
- 4. Application Insight Analytics樞軸
- 5. JPetShop和Azure Application Insight
- 6. 具有SignalR的Azure服務結構WebAPI
- 7. 將商業服務器與持續集成服務器集成
- 8. Application Insight的替代方案:
- 9. Application Insight使用CoreCLR嗎?
- 10. Webhooks&Application Insight Alerts,可能嗎?
- 11. 服務結構服務與用戶表示的服務結構參與者
- 12. 服務結構容器 - 無法訪問集羣內的服務
- 13. 將服務結構集羣子網與NSG關聯
- 14. 將redis集成到無服務器
- 15. 將ADF與現有服務集成
- 16. 將.Net服務與Microsoft Exchange集成
- 17. Azure服務結構:無法運行本地服務結構簇
- 18. Azure服務結構與ApplicationGateway
- 19. 如何無縫集成Subversion和git?
- 20. 無法啓動服務結構服務
- 21. 將Quickfix/n與SQL Server集成服務集成
- 22. 如何將WebWorks ePublisher與持續集成服務器集成?
- 23. 將MOSS 2007與Outlook 2007集成 - 無需交換服務器
- 24. Web服務器OOP結構 - 外部API集成?
- 25. 如何將前端和後端無縫自動集成
- 26. AWS上的服務結構集羣
- 27. Application Insight的TelemetryClient線程安全嗎?
- 28. 什麼是Application Insight的MSIT Recommendad值
- 29. Application Insight擴展是否需要?
- 30. 在Azure集羣中調試服務結構DNX/asp.net 5無狀態服務
感謝您的答案....但具體而言,我使用無狀態WebAPI,但我能夠配置它,它工作正常! – Pushkar