Use Application Insights for Worker Service applications in .NET Core console apps, containers, and any non-HTTP apps
Read OriginalThis article explains how to upgrade .NET Core console apps, container-based workloads, and other non-HTTP applications to use the new Microsoft.ApplicationInsights.WorkerService NuGet package for telemetry. The author describes issues with logs not persisting after upgrading to .NET Core 3.1 and .NET 5, and provides step-by-step instructions for replacing old Application Insights packages with the WorkerService SDK. Covers installation, initialization code changes, and configuration for background workers, making it a practical guide for developers maintaining telemetry in non-HTTP .NET applications.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser
Top of the Week
No top articles yet