azure-application-insights

Azure Function failures occurring, which App Insights Alert to create?

时间秒杀一切 提交于 2021-02-11 18:26:45
问题 Eh! Troubleshooting this all morning to no avail. Background: What: Azure Function Runtime: Python Trigger : EventGrid w/ Advanced Filters Advanced Filters (NOTE: Working just fine for last 30+ days): Subscribed to: Storage Account; blob upload only Auth: System-assigned Managed Identity (Function SAMI added as BlobDataReader role to Storage Account) Issue: Uploading .csv files to blob container does not trigger the Function AND various "ClientOtherError" and "AuthenticationError" messages

Azure Function failures occurring, which App Insights Alert to create?

纵饮孤独 提交于 2021-02-11 18:25:59
问题 Eh! Troubleshooting this all morning to no avail. Background: What: Azure Function Runtime: Python Trigger : EventGrid w/ Advanced Filters Advanced Filters (NOTE: Working just fine for last 30+ days): Subscribed to: Storage Account; blob upload only Auth: System-assigned Managed Identity (Function SAMI added as BlobDataReader role to Storage Account) Issue: Uploading .csv files to blob container does not trigger the Function AND various "ClientOtherError" and "AuthenticationError" messages

https:/3dspace/F5Health.html log in Azure application insights

时光毁灭记忆、已成空白 提交于 2021-02-11 12:32:36
问题 I have created one Node.Js application and I am using Azure application insights in it. Code is very simple. I have started app insights on top of app.js const appInsights = require('applicationinsights'); appInsights.setup('instrument-key-here'); appInsights.defaultClient.commonProperties = { 'appName': 'Name-Of-MS' }; appInsights.start(); import express from 'express'; I am able to see telemetry data in azure but the problem I deploy the application on the dev server (Linux)...run my

NLog with Application Insights - logging exceptions as an exception instead of a trace

允我心安 提交于 2021-02-10 11:44:26
问题 Currently I am using a .NET Core Web Application built using Service Stack. Logging is currently provided by using NLog, with Azure Application Insights as a target. Currently when I log messages and exceptions, I am coming across some weird behaviours: Log.Fatal("test not implemented exception", new NotImplementedException()); //this logs under Exceptions in Application Insights Log.Fatal(new NotImplementedException("test not implemented exception")); //this logs under Trace What I would

TelemetryClient produces inconsistent results in Application Insights

…衆ロ難τιáo~ 提交于 2021-02-10 10:54:47
问题 I tried tracking custom metrics with and without flushing it. However, the metrics only intermittently shows up in Application Insights under the "Custom" section. First question: Is it required to run "flush()" after every single "TrackMetric(metric)" call in order for the telemetry to be sent to Application Insights? Second: Why is there this intermittent behavior? I'm only writing one metric at a time, so it's not as if I'm overloading Application Insights with thousands of separate calls.

ApplicationInsights OperationId is empty

佐手、 提交于 2021-02-08 09:40:11
问题 I'm implementing custom ApplicationInsights logger and able to write all logs in write places like traces, exceptions and request, but OperationId is empty in traces and exceptions. Yesterday I was using same code and getting OperationId in all tables. After that I was playing for multi-thread scenario which didn't work well. Now I started again with simple code but can't see OperationId. what is wrong in my code? public static class Function2 { private static TelemetryClient telemetryClient

Azure Blob Storage successful requests show as failed requests in Application Insights

本小妞迷上赌 提交于 2021-02-08 07:59:24
问题 The following container exists and hence returns failed request code 409 var container = blobClient.GetContainerReference("my-container"); container.CreateIfNotExists(); I do a check to make sure the Blob reference doesn't exist before creating. This returns a 404 response code with a bool. if(container.GetBlockBlobReference("this-file-could-exist").Exists()) { In the first example I expect the container to exist, in the second expect the file not to exist. But in both cases I do a check to

Enable Sql Dependency in Application Insights on Azure Functions with EF Core

此生再无相见时 提交于 2021-02-08 06:25:15
问题 I have an Azure Function v3 application which uses Microsoft.EntityFrameworkCore 3.1.5 . I am not able to enable SQL Dependency tracking. Struggling with it 1 day already. To isolate the issue, I have created a standalone AzureFunction without EF. Instead of EF I was using Microsoft.Data.SqlClient 1.0.19269.1 which is also used by EF. Here goes the function: public static class Function1 { [FunctionName("Function1")] public static async Task<IActionResult> Run( [HttpTrigger(AuthorizationLevel

Log UserName and IP with Custom Properties in Application Insight .Net Core 2.1

断了今生、忘了曾经 提交于 2021-02-07 23:02:51
问题 We are running an intranet Application on .Net Core 2.0. Application insight is very helpfull to catch exceptions. So when the User comes up to us for support we would like to find his request that caused problems in application insight. I added an ClientIpHeaderTelemetryInitializer like this: public class CustomTelemetry : ClientIpHeaderTelemetryInitializer { private readonly IHttpContextAccessor _httpContextAccessor ; public CustomTelemetry(IHttpContextAccessor httpContextAccessor) : base

Application Insight Analytics - Query Client Browser and Device

為{幸葍}努か 提交于 2021-02-07 18:08:59
问题 anyone knows how to query Azure App Insight to get analytics on client devices ? or OS ? I seem to be able to get good stats on Client countries but not devices 回答1: You should have used client_CountryOrRegion in your existing queries, replace it with client_Browser Or other required data models. Here are some queries I used to see summary on browsers.. pageViews | summarize count() by client_Browser browserTimings | summarize avg(networkDuration), avg(processingDuration), avg(totalDuration)