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
1
vote
1 answer

Application Insights - Calculate timespan between two events that have the same operation Id?

I've a lot of events in the traces section of Application Insights. I'm interested in two events "Beginning" and "End", they each have the same operation Id as they're logged in sets. Sometimes the "End" event won't exist - as there will have a been…
user3012708
  • 793
  • 1
  • 11
  • 33
1
vote
1 answer

Azure App Insights Failures not loading in the Azure Portal

In the past week or so I have started seeing an issue within Azure when I try to view the "Failures" blade of the Application Insights resource for our app. It used to work absolutely fine and now it just shows "not found" in small black text on the…
Adam Stapleton
  • 523
  • 5
  • 16
1
vote
2 answers

Reduce telemetry traffic sent from your UWP app

We have this UWP app deployed at some client machines with telemetry code. We now want no telemetry data (if not possible reduce the traffic) to flow into app insights in azure. By deleting the app insights resource itself, will it help in reducing…
1
vote
1 answer

Azure Response Time Monitoring per request with a range

Very new to azure application insight, I want to group all the request with respective duration. For example, I want to put the response time which is in between 0-3 second as "Green/Color", 3-5 second in "Yellow/Color" and greater than 5 should be…
1
vote
1 answer

AppInsights is only saving telemetry data but not saving logs with a .Net Core web app hosted on an IIS

My Program class looks like this public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args) .Build() .Run(); } public static IWebHostBuilder…
Zinov
  • 3,817
  • 5
  • 36
  • 70
1
vote
1 answer

Exception "Request failed: The server committed a protocol violation. Section=ResponseStatusLine" with multi-step availability test

we have a problem with a multi-step availability test both on Visual Studio 2019 Enterprise and Azure Application Insights. The first HTTP request works as expected, but the second HTTP request ends with the following exception: Request failed: The…
1
vote
1 answer

Get ApplicationInsights settings from User Secrets

I Found that configuration of ApplicationInsights.InstrumentationKey is not get from User Secrets. In DefaultApplicationInsightsServiceConfigureOptions I found this code: configBuilder.AddJsonFile("appsettings.json", true) …
Lubos
  • 125
  • 2
  • 10
1
vote
1 answer

Is it possible to log to two different instances of Application Insights from the same Application?

I have a web project implementing Policy Based Authorization. I have two different API'es, i want one API to log to one Instance to Application Insights, and the other API to log to another instance. I am using log4net. I tried two different…
AEH
  • 36
  • 5
1
vote
1 answer

resultCode is 0 for all requests in Application Insights

I have a function app connected with an application insights instance. When I look at the requests on application insights, all entries have a resultCode of 0, regardless of whether it was successful or not. How can I have the resultCode showing…
JoaoRibeiro
  • 808
  • 7
  • 24
1
vote
1 answer

Fetching data in API Explorer for Azure Application Insights REST API returns null (status 200)

I am using Application ID and API keys for our Application Insights instance in API Explorer but getting null responses. Do I need to change any security settings on our App Insights instance to be able to fetch results?? Here is what I get below.…
1
vote
1 answer

opentelemetry add metrics explicitly - azure monitor - opentelemetry

i want to track the use of certain ids in ms azure monitor (application insights). I'm doing this at the moment with the following code excerpt. The problem is that if, for example, six calls are made in quick succession, the first call is tracked…
1
vote
1 answer

Application Insights not logging Questions and Answers from QNA Maker bot

When running the query, I was originally getting the Questions, Answers and Score of the questions asked to my bot. However, about 10 days ago it stopped logging. I am still seeing activity in the application insights of the QNA Maker, but the…
1
vote
1 answer

Blob trigger affecting application insight logging in azure functions

I have two azure functions that exist in the same azure function app and they are both connected to the same instance of application insights: TimerFunction uses a TimerTrigger and executes every 60 seconds and logs each log type for testing…
1
vote
0 answers

Azure Application Insights Tags not showing up in Cost Analysis

We have Azure Application Insights deployed on our environment and we have put 2 tags to every resource App-Name and Env-Name. All resources are tagged and appearing when we pull the Cost Analysis report by Tags except the Application Insights…
user42012
  • 722
  • 12
  • 33
1
vote
1 answer

Sending telemetry to ApplicationInsights inside ConfigureServices

I'd like to send some telemetry from within ConfigureServices, for example if I'm missing a config setting I'd like to send an event to AI to track this. public class Startup { public void ConfigureServices( IServiceCollection services) { …
Iain Brown
  • 1,079
  • 3
  • 11
  • 23