azure-application-insights

Setting username in application insights

拈花ヽ惹草 提交于 2019-11-30 07:09:40
I am new to application insights and have set it up using no custom events and I'm using all the defaults. The application is build on MVC 5. In the ApplicationInsights.config there's a comment saying: "When implementing custom user tracking in your application, remove this telemetry initializer to ensure that the number of users is accurately reported to Application Insights." We have a page where you are required to login so the default user logging isn't saying that much and we would much rather have the username being the unique identifier. Based on the comment it seems like this should be

Using Application Insights with Unit Tests?

≡放荡痞女 提交于 2019-11-30 06:45:37
问题 I have an MVC web app, and I'm using Simple Injector for DI. Almost all my code is covered by unit tests. However, now that I've added some telemetry calls in some controllers, I'm having trouble setting up the dependencies. The telemetry calls are for sending metrics to the Microsoft Azure-hosted Application Insights service. The app is not running in Azure, just a server with ISS. The AI portal tells you all kinds of things about your application, including any custom events you send using

Log4Net with Application Insights

匆匆过客 提交于 2019-11-30 05:54:55
I am trying to configure my azure asp.net website to send log4net traces to Azure Application Insights. I can see in my azure console page views etc, hence I know that is working fine. I can also see log4net traces, when configured with a file handler, but when configuring log4net to use the application insights handler I don't see any log4net entries appear in the application insight dashboard, no errors or warnings at build or run time - just no results in the dashboard. I have looked at the network traffic in Fiddler, and I can see the pageview data etc being sent to application insights,

App Insights: Disable SQL Dependency telemetry

烈酒焚心 提交于 2019-11-30 04:53:58
I'm using Azure Application Insights for a website (Azure App Service). On that I'm using a clustered Umbraco setup and hangfire. These two alone keep hitting the database every minute and are flooding my 'App Insights'. So my question is, how do I disable the Sql Dependency Tracker? I've had a look at the ApplicationInsights.config and couldn't find anything obvious. I can see Microsoft.ApplicationInsights.DependencyCollector which is probably responsible, but I don't want to remove all types of dependency telemetry, only sql. Thanks Your best bet here is to use a Telemetry Processor to

Application insights track metric is not working?

不羁的心 提交于 2019-11-29 15:37:01
I followed up this question: Application insights for wpf application and created console application, where I am using application insights like this: var telemetry = new TelemetryClient(); telemetry.TrackEvent("My event"); telemetry.TrackMetric("Test Metric", 13); telemetry.TrackTrace("Simple log message"); telemetry.TrackException(new Exception()); Everything works and data is sent to Azure, except TrackMetric. Metric is not available neither in metrics explorer, neither in diagnostic statistics. How can I fix it? Thank you in advance. Update 2/5/15 : Custom metrics exposed through

Use Azure Application Insights with Azure WebJob

喜夏-厌秋 提交于 2019-11-29 10:49:05
问题 The Azure documentation covers many examples of integrating Azure Application Insights into different applications types, such as ASP.NET, Java, etc. However, the documentation doesn't show any examples of integrating Application Insights into a Azure WebJob. Does anyone have link to an example or article that covers how to integrate Azure Application Insights into an Azure WebJob that's built as a Console App? 回答1: I have written a console application that tracks events and metrics via

Setting username in application insights

纵饮孤独 提交于 2019-11-29 09:11:11
问题 I am new to application insights and have set it up using no custom events and I'm using all the defaults. The application is build on MVC 5. In the ApplicationInsights.config there's a comment saying: "When implementing custom user tracking in your application, remove this telemetry initializer to ensure that the number of users is accurately reported to Application Insights." We have a page where you are required to login so the default user logging isn't saying that much and we would much

App Insights: Disable SQL Dependency telemetry

狂风中的少年 提交于 2019-11-29 02:28:14
问题 I'm using Azure Application Insights for a website (Azure App Service). On that I'm using a clustered Umbraco setup and hangfire. These two alone keep hitting the database every minute and are flooding my 'App Insights'. So my question is, how do I disable the Sql Dependency Tracker? I've had a look at the ApplicationInsights.config and couldn't find anything obvious. I can see Microsoft.ApplicationInsights.DependencyCollector which is probably responsible, but I don't want to remove all

Log4Net with Application Insights

社会主义新天地 提交于 2019-11-29 01:49:09
问题 I am trying to configure my azure asp.net website to send log4net traces to Azure Application Insights. I can see in my azure console page views etc, hence I know that is working fine. I can also see log4net traces, when configured with a file handler, but when configuring log4net to use the application insights handler I don't see any log4net entries appear in the application insight dashboard, no errors or warnings at build or run time - just no results in the dashboard. I have looked at

Using Application Insights with Unit Tests?

别说谁变了你拦得住时间么 提交于 2019-11-28 21:25:26
I have an MVC web app, and I'm using Simple Injector for DI. Almost all my code is covered by unit tests. However, now that I've added some telemetry calls in some controllers, I'm having trouble setting up the dependencies. The telemetry calls are for sending metrics to the Microsoft Azure-hosted Application Insights service. The app is not running in Azure, just a server with ISS. The AI portal tells you all kinds of things about your application, including any custom events you send using the telemetry library. As a result, the controller requires an instance of Microsoft