azure-application-insights

IP address Mismatch between Azure Application Insights and Google Search

只愿长相守 提交于 2020-02-03 10:56:15
问题 Why there is a difference between the IP address reported by Azure Application Insights and standard Google Search (What is my IP)? IP returned by Azure App Insights: xx.xx.xx.0 IP returned by Google Search: xx.xx.xx.242 回答1: Application Insights uses IP to fetch geo location information such as country/region and city and then discards the last octet of the IP for the privacy reasons. If geo location information extracted from IP is not enough for the scenarios you'd like to address and you

Azure Monitor / Application Insights not showing stack trace for errors

断了今生、忘了曾经 提交于 2020-01-25 06:55:28
问题 I've got an ASP .Net Core 3.0 Web API hosted on Azure App Service. I'm am trying to figure out why it's throwing a 500 Internal Server Error in one of the controller action methods. I've got Application Insights set up, and I can see on the "Failures" page on Azure Portal that there are a number of 500 exceptions. However, I cannot see a stack trace for them. Is there something I need to do to turn on stack trace reporting in Application Insights or Azure Monitor. P.S. Even when my API was on

Azure search: Multiple custom attributes of the same type found

和自甴很熟 提交于 2020-01-25 06:52:18
问题 we are facing with a very strange problem with azure search which only happens on our live environment. This is the code var aaa= new SearchServiceClient("name", new SearchCredentials("XXX")); Literally one line of code, directly under Controller, the page breaks with following message: [AmbiguousMatchException: Multiple custom attributes of the same type found.] System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit) +119 Microsoft.Rest.ServiceClient`1.get

How can I call addTelemetryInitializer when using the latest Javascript snippet?

跟風遠走 提交于 2020-01-24 21:09:12
问题 I am trying to customise the name attribute for pageview events This has previously been asked, for example How to provide custom names for page view events in Azure App Insights? but this and all other solutions I've found (and the Microsoft documentation too) are working with an old version of the javascript snippet, of the form … window.appInsights = appInsights; … appInsights.trackPageView(); The current snippet from the portal is very different though var sdkInstance="appInsightsSDK"

Application insight monitor doesn't send data to portal due to insufficient permission

柔情痞子 提交于 2020-01-24 07:49:29
问题 I installed the application insight status monitor on IIS, however I still don't have server data on the azure portal, and in the monitor I got the following warning message on my app. "The application XXX running under application pool 'XXX' might have insufficient permissions to collect performance data. If no performance counter data is visible in the portal, make sure that the security principal under which the application runs is a member of 'Performance Monitor Users' group". Where can

Exception running application when adding insights to application using Application Insights Status Monitor Preview

北城余情 提交于 2020-01-23 10:46:45
问题 I'm playing around with the preview, and tried adding insights to a IIS web application deployed locally on my machine. It's a .Net 4.5 application running in a nothing out of the ordinary application pool. When starting the application after adding insights, I get this exception: Could not load file or assembly 'Microsoft.ApplicationInsights.Extensions.Intercept_x64.dll' or one of its dependencies. The module was expected to contain an assembly manifest. I tried "Enable 32-Bit Applications"

Configuring Log Level for Azure Functions

让人想犯罪 __ 提交于 2020-01-22 14:45:46
问题 I have an Azure Function App which has Application Insights configured. My functions have some LogTrace() messages in but they are not being captured by AppInsights. Do I have to configure a minimum loglevel somewhere? 回答1: Please take a look at this article on how to set log level for function v1 or v2. In the file host.json , for the filed "Function", set its value to Trace. Then LogTrace() can be logged into application insights. Sample host.json for Azure function v2, which can log trace

Configuring Log Level for Azure Functions

妖精的绣舞 提交于 2020-01-22 14:44:09
问题 I have an Azure Function App which has Application Insights configured. My functions have some LogTrace() messages in but they are not being captured by AppInsights. Do I have to configure a minimum loglevel somewhere? 回答1: Please take a look at this article on how to set log level for function v1 or v2. In the file host.json , for the filed "Function", set its value to Trace. Then LogTrace() can be logged into application insights. Sample host.json for Azure function v2, which can log trace

How to provide custom names for page view events in Azure App Insights?

白昼怎懂夜的黑 提交于 2020-01-21 19:13:09
问题 By default App Insights use page title as event name. Having dynamic page names, like "Order 32424", creates insane amount of event types. Documentation on the matter says to use trackEvent method, but there are no examples. appInsights.trackEvent("Edit button clicked", { "Source URL": "http://www.contoso.com/index" }) What is the best approach? It would be perfect to have some sort of map/filter which would allow to modify event name for some pages to the shared name, like "Order 23424" =>

Instrumenting windows service with Application Insights

断了今生、忘了曾经 提交于 2020-01-21 17:24:08
问题 Is it possible to instrument a windows service running on premise with Application Insights? It's not necessary to have it automatically collecting metrics of the application like it does with Web applications, pushing custom events to Azure would suffice. 回答1: I'll make the docs a bit more clear on this. You can instrument anything if there's a core SDK that will build with it. So any kind of .NET, Java, PHP, OSX, iOS, Android, .... If you want additional modules that log web requests,