Unable to see Function invocations

sonal khatri 51 Reputation points
2024-09-18T07:37:12.06+00:00

Hi,
I have a Service Bus-triggered function, and I am unable to see the function invocation. When I open the log stream, I can see logs of the function being executed, but when I search for the logs in Application Insights, no results are found.

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,285 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,029 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel FANG 705 Reputation points
    2024-09-20T22:45:00.15+00:00

    Hi Sonal

    Worth checking your function app's host.json. The function app might have sampling turned on that will not log every single request in the app insight. Additionally, the app insight might also decide to do the sampling if there are excessive logs from the app.

    {
      "version": "2.0",
      "logging": {
        "applicationInsights": {
          "samplingSettings": {
            "isEnabled": true,
            "excludedTypes": "Request"
          }
        }
      }
    }
    
    
    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.