Questions tagged [azure-application-insights]

For programming questions about Microsoft's Azure Application Insights, which is a monitoring service for deployed live applications, allowing collection of availability, performance, usage, and other diagnostic data. It supports web services, Windows Store apps, and Windows Phone 8 apps.

Application Insights lets you monitor your deployed live applications. It supports web services, web apps, and device apps, across a variety of languages and device ecosystems. Application Insights allows for collection of data around availability, performance, usage, and diagnostics.

Application Insights is part of Microsoft Azure Monitor, which is Microsoft's offering for monitoring applications and infra, in Azure cloud or On-Prem.

For .NET and .NET Core technologies, Application Insights SDKs are available as nuget packages (available from nuget.org), or by functionality built into Visual Studio 2013 (Update 3 and later).

SDKs for other technologies and languages are available on Microsoft's GitHub page.

3791 questions
132
votes
16 answers

Disable application insights in debug

How can I disable application insights automatically when using a debug configuration and enable it only on release? Is it possible to do this without creating another instrumentation key only for debug? I have trackevent statements scattered all…
Alberto Rivelli
  • 1,953
  • 2
  • 15
  • 19
104
votes
10 answers

View POST request body in Application Insights

Is it possible to view POST request body in Application Insights? I can see request details, but not the payload being posted in application insights. Do I have to track this with some coding? I am building a MVC core 1.1 Web Api.
Dhanuka777
  • 8,331
  • 7
  • 70
  • 126
88
votes
6 answers

Remove Application Insight from application on Visual Studio 2013

On Visual Studio I added application insight to a project which creates a ApplicationInsights.config and not sure what other files were added to the project. Thing is, doing right click and press Add Application Insight was pretty straight forward.…
Bart Calixto
  • 19,210
  • 11
  • 78
  • 114
63
votes
1 answer

What is the use of "https://dc.services.visualstudio.com/v2/track"

What is the use of "https://dc.services.visualstudio.com/v2/track" ? As it is used to track our application using Application Insights but in page refresh or page break it stop tracking after that.
Ashish Kumar Sahoo
  • 631
  • 1
  • 5
  • 4
56
votes
1 answer

Comparison between NewRelic and Azure Insights

I'm looking into using a performance and monitoring tool for my web application hosted on Azure. I was wondering what the main differences are between Microsoft's Application Insights and New Relic? Thanks.
evilpilaf
  • 1,991
  • 2
  • 21
  • 38
46
votes
2 answers

Application Insights Delay?

I've looked in many places for details around the delay of time it takes for Application Insights data to appear in my dashboard, but can't find it documented anywhere. I spent some time yesterday trying to debug an issue around my code seemingly…
user1017882
46
votes
5 answers

Adding custom properties for each request in Application Insights metrics

I d'like to add custom properties to metrics taken by Application Insights to each request of my app. For example, I want to add the user login and the tenant code, such as I can segment/group the metrics in the Azure portal. The relevant doc page…
JYL
  • 8,228
  • 5
  • 39
  • 63
45
votes
1 answer

Application Insights - How to sort by custom dimension

I would like to sort the results of my query according to customDimension.MyCustomProperty which is present in all entities and is a number. How can I do that?
Leonardo
  • 10,737
  • 10
  • 62
  • 155
44
votes
3 answers

Configuring Log Level for Azure Functions

I have an Azure Function App which has Application Insights configured. My functions have some LogTrace() messages in but they are not being captured by AppInsights. Do I have to configure a minimum loglevel somewhere?
phil
  • 1,938
  • 4
  • 23
  • 33
44
votes
4 answers

Azure application insights or log analytics

What is the use case for Azure application insights or log analytics? I am using APIM and Azure Functions and want to perform logging for requests. Which one is the best fit, application insights or log…
37
votes
7 answers

Using Application Insights with Unit Tests?

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…
37
votes
4 answers

Log4Net with Application Insights

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…
BMac
  • 2,183
  • 3
  • 22
  • 30
36
votes
6 answers

Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation

I am getting this error whenever I try and run a webjob project with application insight and entity framework. System.IO.FileLoadException: 'Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=0.0.0.0, …
Andrew
  • 2,571
  • 2
  • 31
  • 56
35
votes
1 answer

Azure Application Insights - Summarize by part of timestamp

How can I summarize records by year, month,day and hour only?
Leonardo
  • 10,737
  • 10
  • 62
  • 155
33
votes
2 answers

What's the difference between APPINSIGHTS_INSTRUMENTATIONKEY configured by Azure and ApplicationInsights:InstrumentationKey?

There is some confusion in the Application Insight configuration. It can be configured in the application itself using Visual Studio and in the App Service using Azure Portal. Visual Studio When I use Visual Studio to add Application Insights…
1
2 3
99 100