Exclude sampling of requests by default in host.json templates
See original GitHub issueWith the fix for https://github.com/Azure/azure-functions-host/issues/4753 in, we now need to update templates to exclude Requests from sampling. We can’t do it globally because it’d be considered a breaking change, so we’ll tackle it in templates.
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingExcludedTypes": "Request"
}
}
}
Needs to be done in 3 parts
- Default template
init template
for core tools - Default project template for VS (c# precompiled)
- Default host.json on function app creation from portal
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Configure monitoring for Azure Functions
Common logging configuration can be set in the host.json file. By default ... data of type Request and Exception is excluded from sampling....
Read more >How to exclude Request log entries in Azure Function logs?
Request type excluded by this I can able to Ignore request id's in App insight logs. Updated host.json module:
Read more >Configuring the X-Ray SDK for Python
The SDK uses the sampling rules you define in the X-Ray console to determine which requests to record. The default rule traces the...
Read more >Configure Hosting behavior - Firebase - Google
With Firebase Hosting, you can configure customized hosting behavior for requests to your site. What can you configure for Hosting?
Read more >16. Job Templates — Ansible Tower User Guide v3.8.6
Job Templates¶. A job template is a definition and set of parameters for running an Ansible job. Job templates are useful to execute...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also wonder if in this change we just explicitely add “samplingEnabled”: true so people see it and can easily toggle off as is a constant source of support tickets
Ah my heart is broken. I was hoping we’d modify to
So folks know how to easily toggle this off. But looks like PRs are already in to not include. Can keep an eye out if we should make that additional change so this is more easily discovered by users. @kulkarnisonia16 I would be convinced we should add my “isEnabled” explicit on (which is already default today, it’s just making it more apparent) if we still see a ton of support cases related to samples.