question

ChenLiang-4493 avatar image
0 Votes"
ChenLiang-4493 asked MughundhanRaveendran-MSFT commented

application insights not showing request data

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-functionsazure-monitor
image.png (426.7 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ChenLiang-4493 , You dont see any other traces apart from "Request successfully matched the route with name 'auto' and template" ?

0 Votes 0 ·
ChenLiang-4493 avatar image ChenLiang-4493 MughundhanRaveendran-MSFT ·

thats right, that's what I can only see

0 Votes 0 ·

1 Answer

MughundhanRaveendran-MSFT avatar image
0 Votes"
MughundhanRaveendran-MSFT answered MughundhanRaveendran-MSFT commented

Hi @ChenLiang-4493 ,

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://docs.microsoft.com/en-us/azure/azure-functions/configure-monitoring?tabs=v2#configure-sampling

https://docs.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.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ChenLiang-4493 ,

Following up to see if the above answer helps. Do let me know if you have any queries.

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

0 Votes 0 ·
ChenLiang-4493 avatar image ChenLiang-4493 MughundhanRaveendran-MSFT ·

hi, the problem has been solved, thank you for your help.

0 Votes 0 ·

@ChenLiang-4493 ,

Thanks for the update. If my answer was helpful, please 'Accept as answer'. Original posters help the community find answers faster by identifying the correct answer. Here is how.


0 Votes 0 ·