telemetry

Telemetry sampling without affecting the errors/failures

廉价感情. 提交于 2019-12-06 02:59:34
I want to log a percentage of the success calls in app insights. I came across this post https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling and I think Fixed-rate sampling is appropriate here. But does this affect all logging equally? Will some errors/failures no longer be logged? I am looking for a solution that logs a percentage of the success calls, but keeps all failed requests/errors. I don't think this is supported out of the box, but you can write your own ITelemetryProcessor . See: https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-filtering-sampling#filtering

How to fully disable network request from vs code(telemetry, updates, etc.)

拟墨画扇 提交于 2019-12-05 22:10:55
Built from the latest sources. I am trying to prevent vs code to make any network requests(checking for updates, telemetry, etc.). I tried this config: { "telemetry.enableCrashReporter": false, "telemetry.enableTelemetry": false, "update.channel": "none", "extensions.autoUpdate": false, "git.enabled": false } but there are still tcp connections made to the marketplace and microsoft telemetry services. How do I fully disable network requests without an external firewall? 来源: https://stackoverflow.com/questions/49934435/how-to-fully-disable-network-request-from-vs-codetelemetry-updates-etc

API Application Insights good practice to use

China☆狼群 提交于 2019-12-01 21:43:58
问题 I read this documentation: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics There are many different API method to track exceptions, track trace etc.. I have a ASP.NET MVC 5 application. For example, I have the following controller method (called by ajax): [AjaxErrorHandling] [HttpPost] public async Task SyncDriverToVistracks(int DriverID) { if ([condition]) { // some actions here try { driver.VistrackId = await _vistracksService

API Application Insights good practice to use

最后都变了- 提交于 2019-12-01 19:46:11
I read this documentation: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics There are many different API method to track exceptions, track trace etc.. I have a ASP.NET MVC 5 application. For example, I have the following controller method (called by ajax): [AjaxErrorHandling] [HttpPost] public async Task SyncDriverToVistracks(int DriverID) { if ([condition]) { // some actions here try { driver.VistrackId = await _vistracksService.AddNewDriverToVistrackAsync(domain); await db.SaveChangesAsync(); } catch (VistracksApiException api_ex) { //

Flush() in Azure App Insights

≡放荡痞女 提交于 2019-12-01 00:14:33
For Flush() method in Azure App Insights, I was wondering if it impacts the performance of the project? I tried to remove Flush() and all the custom data are still sent to App Insights.So my question should be why do we need the Flush() ? Can we remove it? Flush() on TelemetryClient pushes all the data it currently has in a buffer to the App Insights service. You can see its source code here: https://github.com/Microsoft/ApplicationInsights-dotnet/blob/3115fe1cc866a15d09e9b5f1f7f596385406433d/src/Microsoft.ApplicationInsights/TelemetryClient.cs#L593 . Normally, Application Insights will send

Flush() in Azure App Insights

假装没事ソ 提交于 2019-11-30 18:11:28
问题 For Flush() method in Azure App Insights, I was wondering if it impacts the performance of the project? I tried to remove Flush() and all the custom data are still sent to App Insights.So my question should be why do we need the Flush() ? Can we remove it? 回答1: Flush() on TelemetryClient pushes all the data it currently has in a buffer to the App Insights service. You can see its source code here: https://github.com/Microsoft/ApplicationInsights-dotnet/blob