I'm setting up a new web app with Application Insights. I've installed AI, and am seeing all the expected telemetry (server requests, failed requests, etc.) in the portal--except for logging sent through ILogger.
I'm using .NET 5 and version 2.17.0 (latest stable) of the Microsoft.ApplicationInsights.AspNetCore nuget package. The connection string and instrumentation key appear to populate correctly and match my AI instance. I set the default LogLevel for ApplicationInsights to "Trace" in appsettings.json, and I'm attempting a log of every level just to make sure. My code is functionally identical to the sample code under ASP.NET Core applications here: https://docs.microsoft.com/en-us/azure/azure-monitor/app/ilogger
Most importantly, the Output window in VS shows that when I call the logger, trace telemetry is being sent correctly. Yet I don't see any logging in Application Insights! I'm absolutely stumped. Any assistance in unraveling this problem would be much appreciated. Thank you!