Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,272 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
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"
}
}
}
}