question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exclude sampling of requests by default in host.json templates

See original GitHub issue

With 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jeffhollancommented, Oct 23, 2019

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

0reactions
jeffhollancommented, Feb 5, 2020

Ah my heart is broken. I was hoping we’d modify to

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingExcludedTypes": "Request",
      "samplingSettings": {
          "isEnabled": true
       }
    }
  }
}

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found