An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Hello Bosen Zhang,
Thanks for posting your question in the Microsoft Q&A forum.
It looks like you're doing most things correctly, but there are a few potential issues and adjustments you might need to consider:
- Ensure that your logging levels are configured correctly. You've set the minimum level to
LogLevel.Information, which should be sufficient for capturing informational logs. - In Azure Functions, the default telemetry configuration should be enough for most scenarios. However, if you have custom configurations or want to ensure that your
TelemetryClientis set up properly - Double-check the connection string in your
AddApplicationInsightsTelemetryconfiguration. - Logs may take a few minutes to appear in the Application Insights portal. If your logs are not showing up, ensure that you’re not filtering out the logs by mistake when querying.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful