Azure Function app logging makes Application Insights traces show in Live metrics but not under Transaction search

Fredrik Heidgert 6 Reputation points
2021-05-19T17:06:35.007+00:00

Hello,

I have created a new Function app in Azure. The standard template gets an ILogger in the Run method of the Function that can be used to log to Application Insights. My app is configured to use Application Insights and I can verify that this works if I turn on the Live metrics and trigger my function (Incoming requests shows a spike and my log messages are shown in the "Sample telemetry" panel.

However, the logs I see in the "Sample telemetry" panel can never be found afterwards. I have tried looking in the "Transaction search" but that is completely empty.

I have waited minutes, hours and days. Nothing ever shows up here, even though it continues to show in the "Sample telemetry" panel of the "Live metrics" pane.

Has anyone else experienced something similar? What am I missing?

Kind regards
Fredrik

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} vote

2 answers

Sort by: Most helpful
  1. olufemia-MSFT 2,861 Reputation points
    2021-06-02T01:21:53.59+00:00

    Hello @Fredrik Heidgert , Thanks for your post and sorry for the delayed response.

    Try using a custom Telemetry Initiallizer to bypass the sampling module for the set of logs you would like to see in the Live Metrics pane.

    101466-livesite-metrics.png


  2. Ariwibawa 2 Reputation points
    2021-07-22T09:34:51.717+00:00

    I was on trial, and it seems that it got disable in Cost management & billing. It confused me at first, because I was told that I could use it for a year. And I still have more than 9 months to a year.
    So in my case, my subscription got disabled. My application could still send data but maybe appinsights rejected it because of disable subscription.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.