application insights not showing request data

Chen Liang 1 Reputation point
2022-05-11T10:33:36.023+00:00

Hi,

Our application insights for azure function have200850-image.png stopped showing data such as "Requests" , only telemetry we can see is "Trace"
here is the host.json we have:
{
"version": "2.0",
"extensions": {
"http": {
"routePrefix": ""
}
},
"logging": {
"logLevel": {
"default": "Information",
"Host": "Error",
"Function": "Error",
"Host.Aggregator": "Error"
}
}
}

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

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,481 Reputation points
    2022-05-13T07:54:25.837+00:00

    Hi @Chen Liang ,

    Thanks for reaching out to Q&A.

    Log sampling may cause some executions to not show up in the Application Insights blade. To avoid log sampling, add excludedTypes: "Request" to the samplingSettings value

    Please modify the host.json in the following way and check if the issues is resolved.

    {
    "logging": {
    "applicationInsights": {
    "samplingSettings": {
    "isEnabled": true,
    "maxTelemetryItemsPerSecond" : 20,
    "excludedTypes": "Request;Exception"
    }
    }
    }
    }

    Reference : https://learn.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-sampling

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#applicationinsights

    I hope this helps! Feel free to reach out to me if you have any further queries or concerns.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


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.