azure-application-insights

azure AI QUERY combine start and response to calculate average

北城以北 提交于 2019-12-11 03:52:09
问题 I'm quite new to azure's application insights analytics query. I'm trying to make some reports out of the data I have. In the table customEvents , there are rows that represents the start and the return (aka Start & Success) of a request (aka Event), but I cannot figure out how to combine the Start and Success for calculating an average/making a report. let table1 = customEvents | extend Start=timestamp | where customDimensions.Action == "Start" and customDimensions.Event == "A" | project

Azure App Services will not start after App Insights upgrade to 2.5

半城伤御伤魂 提交于 2019-12-11 00:24:15
问题 I have a repository that uses application insights to log information about our services running in asp.net. We have some ASP.NET Core 2.0 sites along with some full framework asp.net 4 applications. With the release of application insights 2.5, we get support for live streaming in core sites so I upgraded all packages in the solution to use latest 2.5. Then I built the branch and deployed it via VSTS build and release and I noticed my live streaming was working great. Then, I released the

How can I log the SQL Query to AI?

与世无争的帅哥 提交于 2019-12-10 23:07:16
问题 I have set up a console application that sends data to Application Insights. I can successfully see alot of dependency calls to sql server, but no T-SQL query. Is there any way to configure this? EDIT: I use Linq to SQL (DBML) to connect to SQL server. Thanks, Christopher 回答1: I had the exact same problem and was able to fix it by installing the Application Insights Monitor on our VM that runs IIS and hosts the web application. I found the necessary information here: https://azure.microsoft

Disable digest email in Application insights

北城余情 提交于 2019-12-10 20:56:30
问题 I'm using Application insights for outside-in testing, but my code is not instrumented with it. I don't want to receive the weekly email summary about my service, since most columns are blank. How can I disable the email being sent? (Note I do not want to just unsubscribe myself from it) 回答1: It appears this is not available yet, though someone has proposed it on the Application Insights uservoice site, and AI folks have commented on it: https://feedback.azure.com/forums/357324-application

How to log data binding exceptions in Windows 10 UWP apps using Application Insights?

孤者浪人 提交于 2019-12-10 18:27:48
问题 I want to ensure that I am aware if my team introduces data binding errors within our Windows 10 UWP apps that we are building. XAML data binding errors have silently failed (for better or for worse) since the beginning days of WPF. There were imperative ways to hook onto data bindings available in .NET but that's not what I'm looking for as I want to be able to use declarative (XAML-based data bindings). I'm looking for a global hook kind of like the "UnhandledException" event in App.xaml.cs

Application Insights - Getting only client side data, no server data.

拥有回忆 提交于 2019-12-10 17:37:30
问题 I have an ASP.Net MVC 4 application hosted on Windows Server 2008. I'm using Microsoft Application Insights, and it's working perfectly for client side metrics such as Client Processing Time, Custom Events, Users, Sessions, Page Views, etc. However, I cannot get any server-side metrics such as Processor Time or Available Memory. The areas are all covered by a banner that says something to the effect of "Learn how to collect server request data". When I click on the banner, it shows a blade

WCF service operation name

懵懂的女人 提交于 2019-12-10 16:35:54
问题 Is there a way to configure App Insights to collect the operation name when monitoring a WCF service? All requests get lumped together by URL (which are just POSTs that end in .svc), so there is no easy way to determine which particular operation was called on the service. Does there need to be a custom Telemetry Initializer that can somehow determine which operation was actually called and set a custom property? if so, how do you determine the current WCF operation name? 回答1: Brett,

WebAPI Response never completes when returning HttpResponseMessage and Application Insights is configured

倾然丶 夕夏残阳落幕 提交于 2019-12-10 16:13:22
问题 I have an MVC5/WebAPI2 application which has had Application Insights enabled since I created the web project. WebApi methods that return objects (e.g. string, model objects) are returned as expected - serialized into JSON or XML. public class TestController : ApiController { [HttpGet] [AllowAnonymous] async public Task<HttpResponseMessage> ReadString(int id) { HttpResponseMessage response = Request.CreateResponse(); string str; using (HttpClient client = new HttpClient()) { Uri uri = new Uri

Display user ID in the metrics of application Insight

假装没事ソ 提交于 2019-12-10 16:01:43
问题 This page http://azure.microsoft.com/en-us/documentation/articles/app-insights-web-track-usage-custom-events-metrics/#authenticated-users Show how to have login information in the section "Authenticated users". But how can I see this information in Application Insight after that 回答1: I do not see user anywhere in the custom event properties for events, it seems to be the internal field that's collected but not directly exposed in the view because most of the time this "auto-collected" user

Application Insights Wizard Failure

故事扮演 提交于 2019-12-10 15:56:56
问题 I tried to use the Visual Studio Wizard to add Application Insights to my application. When I did it on my office computer it worked fine. But when I tried to do it at home, it failed with the following error message: --------------------------- Microsoft Visual Studio --------------------------- Could not add Application Insights to project. Failed to install package: Microsoft.ApplicationInsights.Web with error: Unable to resolve dependencies. 'Microsoft.ApplicationInsights 2.5.0' is not