azure-application-insights

Azure App Insights Sampling (ItemCount)

柔情痞子 提交于 2019-12-04 07:15:55
I have a question about Azure App Insights Sampling. If itemCount field is greater than 1 for a log item, does it mean that there was an exactly the SAME request and it was sampled? My logs have one request that sends this message with itemCount = 2. And this request has ended with OptimisticConcurrencyException, so my transaction has been roll-backed. In this transaction I send a message to 3rd party service. The most interesting is that they told me they've got 2 messages from my service and my database has been updated (so transaction has been committed). All of it became clear, if there

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

こ雲淡風輕ζ 提交于 2019-12-04 06:47:40
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . 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.Elapsed); } But, as you suppose, I don't want to write it on all the methods, ideally, I

Configuring Microsoft Application Insights to monitor a windows service

主宰稳场 提交于 2019-12-04 03:22:19
Is it possible to configure Microsoft's Application Insights to monitor a Windows service? I have a VM running in Azure on which the web service is hosted. Which version of the monitoring agent to I need to install and what steps need to be undertaken in order to allow monitoring data do be seen in the dashboard? I'd also love to see this capability, but it seems from this MSDN page that it's not possible. I hope they expand the service's capabilities later on as it would be great to see a product on the level of AppDynamics or New Relic from MS. Performance and exception monitoring with

Managing Application Insights Cookies

瘦欲@ 提交于 2019-12-04 01:41:42
I'm wondering how application insights work with cookies because I'll like to understand user and session tracking, so I've been researching and... Here is a brief introduction about the theory: Whenever Application Insights SDK get a request that doesn’t have application insights user tracking cookie (set by Application Insights JS snippet) it will set this cookie and start a new session. (from apmtips ) 2. UserTelemetryInitializer updates the Id and AcquisitionDate properties of User context for all telemetry items with values extracted from the ai_user cookie generated by the Application

Application Insights security and spoofing

∥☆過路亽.° 提交于 2019-12-04 01:35:28
This may be a silly question but is client side application insights safe from spoofing? Microsoft ask you to add a bit of JavaScript to your HTML page that needs recording and part of this contains a hard coded instrumentation key (not a real key below!): instrumentationKey: "3D486E8C-BDEF-43AB-B27A-9D3F9D42EC14" There doesn't seem to be any other relationship between Url and key or any mechanism to prevent spoofing of this key client side (i.e. randomly generating the key with different numbers and submitting the page). This wouldn't cause any damage, but it would be annoying to the receiver

Detecting whether or not (and why) Application Insights can send telemetry data to Azure

倖福魔咒の 提交于 2019-12-03 22:28:15
I'm developing a Windows Desktop application and have successfully linked the Application Insights Core assemblies. I'm using TrackTrace , TrackEvent , etc. to send custom telemetry. On some workstations telemetry is successfully sent to the Azure portal, and on some others it is not, although calls to TrackTrace , Flush , etc. succeed (or at least return without throwing an exception. TelemetryClient.IsEnabled() returns true. Both workstations use an InMemoryChannel , with the same endpoint https://dc.services.visualstudio.com/v2/track and the sending interval is 30 seconds. Is there an API

How do I enable Application Insights server telemetry on WebApi project that uses OWIN?

六眼飞鱼酱① 提交于 2019-12-03 11:25:18
问题 We are having a bunch of problems (read long response times) with a couple of projects in production and wanted to see exactly what was happening on the server. I then proceeded to add Application Insights to all of our projects by following this article. The problem is that both of our WebAPI projects are not sending server data to the Azure portal, while all other projects (MVC 5) are. This is what is shown when I access the corresponding Application Insights blade on Azure: I tried to

Azure Websites Application Insights - switching config

橙三吉。 提交于 2019-12-03 06:51:30
问题 I have an Azure Website. For the sake of this question, the production version of the website runs on example.com , and a test version of the website runs on sandbox.example.com . The only difference between the two is that they have different configuration. At present, they are running under different websites, and I deploy the same website to each azure website via git. I'd like to separate out the Application Insights data. Is there a technique or process that anyone uses - apart from

Application Insights not tracking sql queries

▼魔方 西西 提交于 2019-12-03 03:26:32
I'm trying to configure my own environment to send data to App Insight with Status Monitor and works fine except sql queries. I have one environment on Azure VM with Azure Database and the SQL queries are been tracking well, but in my own VM against my own Databases not working. The sql trace recorded on that environment is like that: "mssql-IP | database-name" instead of query content. The application tested in both environment is the same, the SO version is the same. I tryed configure my environment against Azure Databases, but still the same problem. I installed .NET 4.6 and still the same

How do I enable Application Insights server telemetry on WebApi project that uses OWIN?

你。 提交于 2019-12-03 01:50:18
We are having a bunch of problems (read long response times) with a couple of projects in production and wanted to see exactly what was happening on the server. I then proceeded to add Application Insights to all of our projects by following this article . The problem is that both of our WebAPI projects are not sending server data to the Azure portal, while all other projects (MVC 5) are. This is what is shown when I access the corresponding Application Insights blade on Azure: I tried to disable and re-enable data collection in the Application Insights Status Monitor in our Azure VMs,