- 
                Notifications
    You must be signed in to change notification settings 
- Fork 465
disabling sampling of requests in default host.json #1807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| /azp run | 
| Azure Pipelines successfully started running 1 pipeline(s). | 
| } | ||
|  | ||
|  | ||
| private static async Task<string> AddLoggingConfig(string hostJsonContent) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for this approach as opposed to just have it in the default host.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the sample of setting bundles as default in host.json. I think the only advantage we get by following this approach, is that we can introduce a flag to skip this logic in the init command no-loggingConfig. While that made sense for bundles, I don't think it does for Application Insight configuration. I will revert this change to simple add this configuration to default host.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good
| While you are doing this -- @jeffhollan (or @paulbatum... I can't remember who brought it up), weren't we discussing also adding this to the default? So it'd be much more "in your face" that sampling is enabled by default? | 
| 
 Jeff added that to the issue after the PR was out. Will add that to the config as well | 
| /azp run | 
| Azure Pipelines successfully started running 1 pipeline(s). | 
| /azp run | 
| Azure Pipelines successfully started running 1 pipeline(s). | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

closes Azure/azure-functions-templates#906