We are using .NET CORE 3.0 web application. We haven't included any App Insight Nuget package for App Insight. But we have enabled the appinsight directly from Azure Portal. After doing this, I'm expecting the server request, failures and live metrics to display.
But I keep getting this error on live metrics even though app is running: Not available: your app is offline or using an older SDK
We didn't have to include any appinsight nuget packags for 2.7 NET CORE version. Any idea why no metrics being displayed?
Open your project in Visual Studio. Go to Project > Add Application Insights Telemetry. Choose Azure Application Insights, then select Next. Choose your subscription and Application Insights instance (or create a new instance with Create new), then select Next.
Open the Application Insights Search telemetry window in Visual Studio. While debugging, select the Application Insights dropdown box. Select an exception report to show its stack trace. To open the relevant code file, select a line reference in the stack trace.
To remove Application Insights, you'll need to remove the NuGet packages and references from the API in your application. You can uninstall NuGet packages by using the Package Management Console or Manage NuGet Solution in Visual Studio.
As clearly stated in the docs you have to include some NuGet packages:
Get Started
If you haven't yet install Application Insights in your web app, do that now.
In addition to the standard Application Insights packages Microsoft.ApplicationInsights.PerfCounterCollector is required to enable Live Metrics stream.
Update to the latest version of the Application Insights package. In Visual Studio, right-click your project and choose Manage Nuget packages. Open the Updates tab, and select all the Microsoft.ApplicationInsights.* packages.
Redeploy your app.
In the Azure portal, open the Application Insights resource for your app, and then open Live Stream.
If you don't include those packages some telemetry is send to App Insights, but this telemetry won't be shown in the Live Metrics stream.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With