Use Application Insights for Worker Service applications in .NET Core console apps, containers, and any non-HTTP apps

Use Application Insights for Worker Service applications in .NET Core console apps, containers, and any non-HTTP apps

Relying on Application Insights to provide great data has always been a core component of anything I create. Recently, I upgraded my projects to .NET Core 3.1, and in few cases I also upgraded to .NET 5 (Preview). A lot of my code is executed in containers, or other background processes that may not have a native Application Insight integration. With the upgrade to .NET Core 3.1, we noticed after a while that no logs were persisted to the cloud anymore. I could see telemetry being created when debugging, and from that perspective all the unit tests were…

Read More

Retrieve logs from Application Insights programmatically with .NET Core (C#)

Retrieve logs from Application Insights programmatically with .NET Core (C#)

When working with Azure's Application Insights, there's some times where I would've wanted to quickly and programmatically export specific events, search the logs or otherwise pull some data out based on dynamic metrics of applications or monitoring solutions I've set up. In this post we'll take a look at how easy it is to use the Microsoft.Azure.ApplicationInsights NuGet package to utilize .NET Core to retrieve data programmatically from Application Insights. For example, in the Azure Portal I can easily see my Application Insights data on demand and search and filter my logs in the intuitive and simplified UI:…

Read More

Getting Started with Application Insights with Visual Studio 2015 for your ASP.NET Web Applications

Getting Started with Application Insights with Visual Studio 2015 for your ASP.NET Web Applications

Disclaimer: This post was written 2014-11-13, while the Application Insights were still in Beta/Preview. Changes will most likely happen, and therefore some information below may have changed by the time you read this. Introduction to Microsoft Application Insights One of the really cool features that was recently announced by Microsoft is the Application Insights integration with Visual Studio 2015. Don’t confuse this with reporting provided by services like Google Analytics, which only use client-side reporting capabilities. This is full server-side awesomeness which can report the health of your specific service or application directly, having the reports instantaneously accessible…

Read More