@DJ ,
Based on our discussion, I have outlined the optimal setup for Application Insights in your Function Apps while ensuring cost efficiency and capturing only relevant logs.
- Log Analytics Workspace Structure
You do not require separate billing, regional compliance, or environment-specific requirements. Since Function Apps have minimal retention needs, a single Log Analytics workspace is sufficient to manage all Application Insights telemetry.
- Restricting Logs Sent to Application Insights
To control what gets logged, modify the host.json
configuration in your Function App:
json
{
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"includeTypes": "Exception",
"excludeTypes": "Request, Trace, Dependency, Event"
}
}
}
}