azure-application-insights

Azure Insights telemetry not showing Auth ID on all transactions

二次信任 提交于 2019-12-08 05:03:00
问题 I'm trying to integrate Azure Insights telemetry with our SPA and trying to add authenticated user tracing. For this, after logging in, I call ReactAI.ai().setAuthenticatedUserContext(user_id) . I can see the user_id on that specific trace, but not on subsequent ones. If I grab the session id in that trace, I can reconstitute the user journey, but would ideally like to not go through the extra step of figuring out the session id. 回答1: The full signature of the method would be:

Want to send email on an events in my app

心已入冬 提交于 2019-12-08 04:39:02
问题 I want to send emails through application insight for certain events like validation failure, mandatory field not present etc. I know Application insight doesn't have facility to support Email facility directly, but it can send an alert when a metric crosses a threshold. Alerts can be set on custom metrics, though not custom events. Write some code to increase a metric when the event occurs. I am referring below link to achieve email sending functionality. https://github.com/MicrosoftDocs

FileNotFoundException in Windows 10 Universal App (UAP)

寵の児 提交于 2019-12-08 00:51:17
问题 I developed and published a Windows Universal App. To track exceptions and the app usage I enabled Application Insights and I can find FileNotFoundException's there with the following Call Stack: at Mindapp!<BaseAddress>+0x6e58d1 at Mindapp!<BaseAddress>+0x6ee2a4 at Mindapp!<BaseAddress>+0x86bd63 --- End of stack trace from previous location where exception was thrown --- at Mindapp!<BaseAddress>+0x6e58d1 at Mindapp!<BaseAddress>+0x6ee2a4 at Mindapp!<BaseAddress>+0x86d250 --- End of stack

Application Insights purge data from custom data source

人走茶凉 提交于 2019-12-07 18:28:26
问题 I load custom data into an application insights app via a Azure Function programatically on a schedule. The workflow is essentially loading a json file onto an azure storage account, calling post to a particular endpoint with body containing link with sas token to json file, and then the ingest cycle occurs loading the json into the custom data source. What I have noticed is that the ingestion cycle concatonates old records with the new JSON - and I need to PURGE the data before triggering a

Adding correlation id to automatically generated telemetry with App Insights

本秂侑毒 提交于 2019-12-07 17:43:51
问题 I'm very new to Application Insights, and I'm thinking of using it for a set of services I plan on implementing with asp.net webapi. I was able to get the basic telemetry up and running very easily (right-clicking on a project on VS, Add Application Insights), but then I hit a block. I plan to have a correlation id set in the request headers for calls to downstream services, and I would like to tag all the telemetry related to one outside call with the same correlation id. So far I've found

Telemetry sampling without affecting the errors/failures

痞子三分冷 提交于 2019-12-07 15:37:50
问题 I want to log a percentage of the success calls in app insights. I came across this post https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling and I think Fixed-rate sampling is appropriate here. But does this affect all logging equally? Will some errors/failures no longer be logged? I am looking for a solution that logs a percentage of the success calls, but keeps all failed requests/errors. 回答1: I don't think this is supported out of the box, but you can write your own

Want to send email on an events in my app

 ̄綄美尐妖づ 提交于 2019-12-07 15:36:37
I want to send emails through application insight for certain events like validation failure, mandatory field not present etc. I know Application insight doesn't have facility to support Email facility directly, but it can send an alert when a metric crosses a threshold. Alerts can be set on custom metrics, though not custom events. Write some code to increase a metric when the event occurs. I am referring below link to achieve email sending functionality. https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/application-insights/app-insights-how-do-i.md But I am facing one problem.

Application Insights to azure webjob .Net Core 2.0

余生颓废 提交于 2019-12-07 06:10:40
问题 How to add application insights telemetry (Application Insights) to azure webjob ? 回答1: With recently released WebJob SDK 3.0, you can add ApplicationInsights in the ConfigureLogging method public static async Task Main(string[] args) { var builder = new HostBuilder() .ConfigureWebJobs(b => { b.AddAzureStorageCoreServices().AddAzureStorage(); }) .ConfigureAppConfiguration(b => { // Adding command line as a configuration source b.AddCommandLine(args); }) .ConfigureLogging((context, b) => { b

WebTelemetryInitializerBase in ASP.NET Core / MVC6

江枫思渺然 提交于 2019-12-07 05:09:26
问题 Is there an MVC6 compatible version of WebTelemetryInitializerBase that would work with ASP.NET Core (on the full .NET Framework)? See my question here where I asked how to get HttpContext in my temeletry initializers. Unfortunately I didn't specify that I was using MVC 6 and thus no System.Web.HttpContext . 回答1: Yes, there is a version of this for aspnetcore. Check out the Microsoft Application Insights for ASP.NET Core applications repo. There is an implementation of getting the WebUser

AreaRegistration.RegisterAllAreas() never finishes when using Application Insights

雨燕双飞 提交于 2019-12-07 04:02:49
问题 I created a new ASP.net MVC application using Visual Studio 2013 Update 4 and checked the box to use Application Insights. When I try and run the application (with or without debugging) the site never loads. When I debug it I noticed that it is getting stuck in Global.asax.cs on the line: AreaRegistration.RegisterAllAreas(); I have taken a look at the answers on a few other questions including this one: AreaRegistration.RegisterAllAreas() is not Registering Rules For Area This did not solve