azure-application-insights

Adding custom properties to default request telemetry

℡╲_俬逩灬. 提交于 2020-01-06 02:30:09
问题 How can I add custom properties to the default request telemetry in application insights? I was able to do that by creating new telemetry client but I would like NOT to do that as it creates duplicate events. 回答1: Make your own custom TelemetryInitializer. https://azure.microsoft.com/en-us/documentation/articles/app-insights-api-custom-events-metrics/#telemetry-initializers. snipped from the above article: using System; using Microsoft.ApplicationInsights.Channel; using Microsoft

AI (Internal): Reached message limit. End of EventSource error messages

ε祈祈猫儿з 提交于 2020-01-05 07:54:31
问题 I am performing activities as EventHubTrigger with Azure Function. This trace message is popping up all over our AppInsights instance. I don't know what is means, or what could be the cause. I'm happy to provide any details that can help debug. Trace message 2019-01-24T04:12:33.467 AI (Internal): Reached message limit. End of EventSource error messages. sdkVersion : dotnet:2.7.2-23439 2019-01-24T04:12:33.467 AI (Internal): [Microsoft-ApplicationInsights-Core] Reached message limit. End of

Track System.Diagnostics.Trace logs in Azure portal

人盡茶涼 提交于 2020-01-04 05:35:12
问题 In my web application, I use System.Diagnostics.Trace.WriteLine(...); for diagnostics. The application is published to an Azure deployment slot. I am wondering where I can find these logs in the Azure Portal (or Visual Studio's cloud explorer). 回答1: You first need to activate the Application Logging: Go to your Web App. Go to Monitoring / Diagnostics logs . Enable Application Logging and configure it. This article can also be useful: https://stackify.com/azure-app-service-log-files/ 来源: https

Application Insights TraceListener: Setting Severity level

独自空忆成欢 提交于 2020-01-03 17:09:19
问题 The answer to this might be a simple no, but I was wanting to set the severity level of the Trace events that are reported. I am using the prerelease versions of the Application Insights API and Application Insights TraceListener. Basically I just want to filter out Trace events with a verbose severity. I know I can filter them out when viewing the Application insights in the Azure portal, but I would rather them not be reported at all. Is there a way to set the severity level of Trace Events

Export Custom Event Dimensions to SQL from Application Insights using Stream Analytics

别等时光非礼了梦想. 提交于 2020-01-03 13:09:07
问题 I'm following the example walkthrough Export to SQL from Application Insights using Stream Analytics. I am trying to export custom event dimensions (context.custom.dimensions in the JSON example below) which get added as a nested JSON array in the data file. How do I flatten the dimensions array at context.custom.dimensions for export to SQL? JSON... { "event": [ { "name": "50_DistanceSelect", "count": 1 } ], "internal": { "data": { "id": "aad2627b-60c5-48e8-aa35-197cae30a0cf",

Cannot add Application Insights - Failed to install package 'Microsoft.Web.Infrastructure'

徘徊边缘 提交于 2020-01-03 08:09:13
问题 I try to monitor the memory usage of my CloudService and stumbled upon Application Insights. When I try to add it I get following error message: right click on WebProject -> Add Application Insights Telemetrik Insert Subscription-Data -> click Add-Button Now the error occurs when VS tries to install 'Microsoft.ApplicationInsights.Web.2.0.0' We are using VS2015 and Windows 10 Edit: The fun thing is I can install Microsoft.ApplicationInsights.Web version 2.0.0 via the nuget-console. But when I

Cannot add Application Insights - Failed to install package 'Microsoft.Web.Infrastructure'

自闭症网瘾萝莉.ら 提交于 2020-01-03 08:08:45
问题 I try to monitor the memory usage of my CloudService and stumbled upon Application Insights. When I try to add it I get following error message: right click on WebProject -> Add Application Insights Telemetrik Insert Subscription-Data -> click Add-Button Now the error occurs when VS tries to install 'Microsoft.ApplicationInsights.Web.2.0.0' We are using VS2015 and Windows 10 Edit: The fun thing is I can install Microsoft.ApplicationInsights.Web version 2.0.0 via the nuget-console. But when I

Application Insights logging with log4j in java

我的未来我决定 提交于 2020-01-02 15:03:21
问题 I recently discovered that there was log4j extension for application insights. So following the example online I attempted to configure application insights and log4j to log items from my servlets living in an azure hosted tomcat. Well, the example seems very incomplete as it never makes mention of the key at all. From looking through the source I see an example (test?) that uses <param> within the log4j.xml but not much explanation of how to use or debug the actual logger. Does anyone out

Application Insights logging with log4j in java

狂风中的少年 提交于 2020-01-02 15:02:08
问题 I recently discovered that there was log4j extension for application insights. So following the example online I attempted to configure application insights and log4j to log items from my servlets living in an azure hosted tomcat. Well, the example seems very incomplete as it never makes mention of the key at all. From looking through the source I see an example (test?) that uses <param> within the log4j.xml but not much explanation of how to use or debug the actual logger. Does anyone out

How to prevent losing telemetry events with Application Insight's Persistence Channel?

三世轮回 提交于 2020-01-01 12:06:11
问题 I have integrated Microsoft Application Insights into my Windows Forms app. In the document Application Insights on Windows Desktop apps, services and worker roles which uses the default in-memory channel, after flushing the application sleeps for one second before exiting. tc.Flush(); // only for desktop apps // Allow time for flushing: System.Threading.Thread.Sleep(1000); The document states: Note that Flush() is synchronous for the persistence channel, but asynchronous for other channels.