How to add Azure Application Insights to a .NET Core App?

Niko 1 Reputation point
2020-05-26T13:55:58.45+00:00

I'm trying to add Azure Application Insights to my .NET Core App so I can see search traffic analytics but I only keep finding documentation on how to set this up for an ASP.NET App, is setting Azure Application Insights possible for a .NET Core App?

Thanks for your time,

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,792 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 15,696 Reputation points
    2020-05-26T19:17:55.657+00:00

    Hi @Niko ,

    You can also check out this documentation. It describes how to enable Application Insights for an ASP.NET Core application. The example used in the doc is an MVC application that targets netcoreapp3.0. However, you can apply these instructions to all ASP.NET Core applications.

    Hope that helps.

    Please let us know if you have further questions.

    1 person found this answer helpful.
    0 comments No comments

  2. Harlen Alvarez 21 Reputation points
    2020-05-26T16:35:49.33+00:00

    You could try using the worker service app insights SDK.
    Here's the link