azure-application-insights

ASP.NET Core MVC application insights stopped working after upgrade to .NET Core 1.1.1

限于喜欢 提交于 2019-12-06 23:47:34
问题 I have one simple ASP.NET Core application I was working on back in December 2016. It worked just fine with application insights and telemetry. Now after 4 months I wanted to pick up this work and started with upgrade from .NET Core 1.1.0 to 1.1.1. In this process package Microsoft.ApplicationInsights.AspNetCore got updated from version 1.0.2 to version 2.0.0 . This unfortunately caused my app to stop working, in particular I get this error: An error occurred during the compilation of a

Adding Custom Dimension to Request Telemetry - Azure functions

家住魔仙堡 提交于 2019-12-06 21:00:38
I am creating a new Function app using v2.x and I am integrating Application Insights for request logging that is automatically being done as Azure Function is now integrated with App Insights (as mentioned in the documentation link ). What I would need to do is log few custom fields in the custom dimensions in Application Insights Request Telemetry. Is it possible without using Custom Request logging (using TrackRequest method) George Chen About adding custom properties, you could refer to this tutorial: Add properties: ITelemetryInitializer . The below is my test a HTTP trigger function.

Azure Application Insights: How to format dates (and numbers)

╄→гoц情女王★ 提交于 2019-12-06 12:06:06
I'm in need of formatting an aggregated date in such a way that it produces an readable and sortable format. I am creating a time series that aggregates the number of requests over a period of days using the following code: let us_date = (t:datetime) { strcat( getmonth(t - 8h), "-", dayofmonth(t - 8h)) }; requests | project timestamp, client_IP, local_date = us_date(timestamp) | where timestamp >= now() - 30d and timestamp <= now() + 1d | summarize uniqueUsers = dcount(client_IP) by usdate = us_date(timestamp) | order by usdate desc which produces: The data is fine, but due to the formatting

FileNotFoundException in Windows 10 Universal App (UAP)

青春壹個敷衍的年華 提交于 2019-12-06 11:23:27
I developed and published a Windows Universal App. To track exceptions and the app usage I enabled Application Insights and I can find FileNotFoundException's there with the following Call Stack: at Mindapp!<BaseAddress>+0x6e58d1 at Mindapp!<BaseAddress>+0x6ee2a4 at Mindapp!<BaseAddress>+0x86bd63 --- End of stack trace from previous location where exception was thrown --- at Mindapp!<BaseAddress>+0x6e58d1 at Mindapp!<BaseAddress>+0x6ee2a4 at Mindapp!<BaseAddress>+0x86d250 --- End of stack trace from previous location where exception was thrown --- at Mindapp!<BaseAddress>+0x6e58d1 at Mindapp!

Custom Application Insight TelemetryInitializer using Azure Function v2

吃可爱长大的小学妹 提交于 2019-12-06 10:42:41
In a Azure Function we make a number of request using the .NET HttpClient class, the Azure Servicebus SDK and the Azure Storage SDK - everything is beautifully logged via the build in Application Insight logging, showing dependencies and all! Now we however like to add an implementation of ITelemetryInitializer to add a few dimensions to the EventTelemetry being written by the SDKs mentioned above. We start by creating a class implementing the ITelemetryInitializer interface. public class ReferrerTelemetryInitializer : ITelemetryInitializer { public void Initialize(ITelemetry telemetry) { if

Application Insights logging with log4j in java

拜拜、爱过 提交于 2019-12-06 09:20:56
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 there have any pointers on how to actually use/implement the ApplicationInsightsAppender for log4j? Here

How to stop running multiple application insights for Azure Web App?

て烟熏妆下的殇ゞ 提交于 2019-12-06 06:04:56
问题 We have enabled Application Insights for an Azure Web App. The following highlighted Application Insights automatically added to the app service even after deleted manually. Is there anyway to permanently disable/delete this? NOTE: We have configured Scale Out (Max: 10 instances) for the App Service. 回答1: It seems that the old extension was not properly removed when you enabled the new experience. Even though the App Service doesn't show the "Microsoft.ApplicationInsights.AzureWebSites"

disable send diagnostics data to application insights on publish settings

空扰寡人 提交于 2019-12-06 04:50:52
问题 I've created a web role on vs2013 and recently upgraded it to vs2015. When publishing the role to Azure, the send diagnostics data to application insights is turned on. Since I don't want to use the application insights each time, when I need to publish my role I need to uncheck the checkbox. Is there a way to permanently uncheck this option? 回答1: You can avoid getting the "Diagnostics" tab in the publish dialog by following these steps: Open the Properties page for one of the roles in your

Application Insights purge data from custom data source

元气小坏坏 提交于 2019-12-06 04:48:05
I load custom data into an application insights app via a Azure Function programatically on a schedule. The workflow is essentially loading a json file onto an azure storage account, calling post to a particular endpoint with body containing link with sas token to json file, and then the ingest cycle occurs loading the json into the custom data source. What I have noticed is that the ingestion cycle concatonates old records with the new JSON - and I need to PURGE the data before triggering a new ingestion so the JSON file always represents the complete state of the data set. Is there any API

Configurable Application Insights Instrumentation Key

眉间皱痕 提交于 2019-12-06 04:08:47
问题 How can I best make the Application Inisghts' Instrumentation Key configurable in a way that allows an Azure Administrator to manage the settings for an App Services deployment of an MVC5 web application? Is there a certain event in an MVC application initialization where this should be done or is it okay to do it at pretty much any point? I am using the Trace Listener integration as well. By default, the Instrumentation Key (iKey) is set in the ApplicationInsights.config file. Additionally,