azure-application-insights

Application insights and service fabric?

谁说我不能喝 提交于 2020-01-01 11:44:06
问题 I found this from several months back on Application Insights and Service Fabric and I'm wondering if there is any new information. I would really like to get CPU, Memory, Storage and other metrics out of service fabric and the reliable actors. Having it presented in a user friendly HUD like app insights provides would be awesome! Thanks! 回答1: On the azure portal, you can now create a resource called 'Service Fabric Analytics' to create a nice dashboard for your cluster. Configure as cluster

Best way to measure the execution time of methods [closed]

梦想的初衷 提交于 2020-01-01 09:59:36
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I'm trying to find the best way to measure the duration of a method to log them on Application Insights, I know it's possible if we do something like this: public void TestMethod() { var sw = Stopwatch.StartNew(); //code here sw.Stop(); Console.WriteLine("Time elapsed: {0}", sw

Is this Application Insight / Azure Functions Bug? or My understanding is incorrect

六眼飞鱼酱① 提交于 2019-12-30 14:17:46
问题 Today I integrate my Azure function with Application insight for application logging, especially to capture error stack-trace. First I have written Azure function without try-catch block so It was showing correct status/Information in Monitor section and application insight as well. Later I added try-catch block and logged some more data like catch(Exception ex) { log.Error(inputData); log.Error(ex.Message); return req.CreateResponse(HttpStatusCode.InternalServerError); } You can see in below

Is this Application Insight / Azure Functions Bug? or My understanding is incorrect

佐手、 提交于 2019-12-30 14:17:18
问题 Today I integrate my Azure function with Application insight for application logging, especially to capture error stack-trace. First I have written Azure function without try-catch block so It was showing correct status/Information in Monitor section and application insight as well. Later I added try-catch block and logged some more data like catch(Exception ex) { log.Error(inputData); log.Error(ex.Message); return req.CreateResponse(HttpStatusCode.InternalServerError); } You can see in below

Application Insights - Logging exceptions

被刻印的时光 ゝ 提交于 2019-12-30 08:33:11
问题 I wrote a custom logger for Application Insights in my app. I don't see any exceptions or ANY events when viewing App Insights in Azure Portal. Here is the logger class code, when I debug the code I do see a key assigned to the InstrumentationKey property, any ideas what I am doing wrong here? Do I need to attach other info to the client or configuration? public class AppInsightsLogger:ILogger { private TelemetryClient ai; public AppInsightsLogger() { ai = new TelemetryClient(); if (string

Application Insights - Logging exceptions

怎甘沉沦 提交于 2019-12-30 08:33:07
问题 I wrote a custom logger for Application Insights in my app. I don't see any exceptions or ANY events when viewing App Insights in Azure Portal. Here is the logger class code, when I debug the code I do see a key assigned to the InstrumentationKey property, any ideas what I am doing wrong here? Do I need to attach other info to the client or configuration? public class AppInsightsLogger:ILogger { private TelemetryClient ai; public AppInsightsLogger() { ai = new TelemetryClient(); if (string

How to link exceptions to requests in Application Insights on Azure?

。_饼干妹妹 提交于 2019-12-29 17:47:30
问题 We are using Owin on Azure for a REST service, and have to report to Application Insights directly. We want to log exceptions and requests. Right now we have this: using AppFunc = Func<IDictionary<string, object>, Task>; public class InsightsReportMiddleware { readonly AppFunc next; readonly TelemetryClient telemetryClient; public InsightsReportMiddleware(AppFunc next, TelemetryClient telemetryClient) { if (next == null) { throw new ArgumentNullException("next"); } this.telemetryClient =

How to link exceptions to requests in Application Insights on Azure?

杀马特。学长 韩版系。学妹 提交于 2019-12-29 17:47:01
问题 We are using Owin on Azure for a REST service, and have to report to Application Insights directly. We want to log exceptions and requests. Right now we have this: using AppFunc = Func<IDictionary<string, object>, Task>; public class InsightsReportMiddleware { readonly AppFunc next; readonly TelemetryClient telemetryClient; public InsightsReportMiddleware(AppFunc next, TelemetryClient telemetryClient) { if (next == null) { throw new ArgumentNullException("next"); } this.telemetryClient =

How to link exceptions to requests in Application Insights on Azure?

左心房为你撑大大i 提交于 2019-12-29 17:46:05
问题 We are using Owin on Azure for a REST service, and have to report to Application Insights directly. We want to log exceptions and requests. Right now we have this: using AppFunc = Func<IDictionary<string, object>, Task>; public class InsightsReportMiddleware { readonly AppFunc next; readonly TelemetryClient telemetryClient; public InsightsReportMiddleware(AppFunc next, TelemetryClient telemetryClient) { if (next == null) { throw new ArgumentNullException("next"); } this.telemetryClient =

Azure Microsoft Insights API 2016-09-01 Error while collecting Metrics

浪子不回头ぞ 提交于 2019-12-29 02:06:09
问题 Please help me to understand why from last few days Azure Microsoft Insights API 2016-09-01 is giving the following error { "code": "BadRequest", "message": "only conditions of the form '<name> eq <value>' are allowed, where <name> = 'timeGrain', 'startTime', 'endTime', 'name.value', 'aggregationType', 'debugRegion' : ( name.value eq 'Disk Write Bytes' ) and timeGrain eq duration'PT5M' and startTime eq 2017-10-25T13:27:49.620 0000 and endTime eq 2017-10-25T13:32:49.620 0000 " } few days back