azure-application-insights

Application Insights added ConnectedService.json file to my project, what does this do?

懵懂的女人 提交于 2019-12-22 02:22:04
问题 I have added application insights to my asp.net 4.6 web application. This also added the file Service References\Application Insights\ConnectedService.json The contents of this file: { "ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider", "Version": "7.1.719.1", "GettingStartedDocument": { "Uri": "https://go.microsoft.com/fwlink/?LinkID=613413" } } What is this file for? It does not seem to provide any logic to my application and does not seem to be required

add app insights trace logging to .net core console application

霸气de小男生 提交于 2019-12-21 21:51:22
问题 I've got a .net core console application (not AspNetCore), and I want to add app insights logging that will push out the trace logs to app insights. I have tried using Microsoft.ApplicationInsights.AspNetCore, but when I do: factory.AddApplicationInsights(serviceProvider); it throws an error saying it can't find the hosting environment Unable to resolve service for type 'Microsoft.AspNetCore.Hosting.IHostingEnvironment' while attempting to activate 'Microsoft.ApplicationInsights.AspNetCore

Azure App Insights Sampling (ItemCount)

不想你离开。 提交于 2019-12-21 17:47:33
问题 I have a question about Azure App Insights Sampling. If itemCount field is greater than 1 for a log item, does it mean that there was an exactly the SAME request and it was sampled? My logs have one request that sends this message with itemCount = 2. And this request has ended with OptimisticConcurrencyException, so my transaction has been roll-backed. In this transaction I send a message to 3rd party service. The most interesting is that they told me they've got 2 messages from my service

Azure application insights or log analytics

不羁的心 提交于 2019-12-21 14:58:35
问题 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 analytics? https://docs.microsoft.com/en-gb/azure/azure-monitor/overview Update In particular, any info on Azure application insights vs log analytics used for APIM? 回答1: What used to be known as Application Insights and Log Analytics independent offerings - are now a part of Azure Monitor. We

Application Insights not showing data in Azure Preview Portal

非 Y 不嫁゛ 提交于 2019-12-21 13:16:16
问题 I have an existing web application on Azure with some very limited application insights monitoring (end point checks). I thought I would pull in the rest of the functionality so I added telemetry to my project following the instructions at http://azure.microsoft.com/en-us/documentation/articles/app-insights-start-monitoring-app-health-usage/. Everything went well and I was able to see that when I loaded a page with the instrumentation JavaScript it was indeed sending requests to azure and I

Application Insights security and spoofing

余生颓废 提交于 2019-12-21 07:11:16
问题 This may be a silly question but is client side application insights safe from spoofing? Microsoft ask you to add a bit of JavaScript to your HTML page that needs recording and part of this contains a hard coded instrumentation key (not a real key below!): instrumentationKey: "3D486E8C-BDEF-43AB-B27A-9D3F9D42EC14" There doesn't seem to be any other relationship between Url and key or any mechanism to prevent spoofing of this key client side (i.e. randomly generating the key with different

Application Insights not tracking sql queries

余生长醉 提交于 2019-12-20 14:18:03
问题 I'm trying to configure my own environment to send data to App Insight with Status Monitor and works fine except sql queries. I have one environment on Azure VM with Azure Database and the SQL queries are been tracking well, but in my own VM against my own Databases not working. The sql trace recorded on that environment is like that: "mssql-IP | database-name" instead of query content. The application tested in both environment is the same, the SO version is the same. I tryed configure my

Application Insights not tracking sql queries

两盒软妹~` 提交于 2019-12-20 14:17:10
问题 I'm trying to configure my own environment to send data to App Insight with Status Monitor and works fine except sql queries. I have one environment on Azure VM with Azure Database and the SQL queries are been tracking well, but in my own VM against my own Databases not working. The sql trace recorded on that environment is like that: "mssql-IP | database-name" instead of query content. The application tested in both environment is the same, the SO version is the same. I tryed configure my

Deleting/Purge data from Azure Application Insights

拥有回忆 提交于 2019-12-20 06:45:55
问题 The following page shows how can I purge Application Insights data - https://docs.microsoft.com/en-us/rest/api/application-insights/components/purge I tried following it but it doesn't mention how to use authentication and I am getting the following error in response - { "error": { "code": "AuthenticationFailed", "message": "Authentication failed. The 'Authorization' header is missing." } Can someone please guide me how do use the authentication header? 回答1: As per joy said in comment, just

Application Insights tracking only failed ASP.NET MVC Web API requests

做~自己de王妃 提交于 2019-12-19 10:02:36
问题 I have a ASP.NET Web API controller that provides a saveAndNew operation. This class is derived from System.Web.Http.ApiController as expected. Application Insights is correctly configured using version 2.1.0 of the SDK and the default settings in ApplicationInsights.config. If a request to the mentioned operation fails - for example with status code 400 - the request is recorded correctly in App Insights. The problem is that if the operation SUCCEEDS (status code 200) nothing is recorded in