Skip to content

Sample out/stop auto collected HTTP dependencies #4573

@YairoR

Description

@YairoR

Expected behavior

I would like to understand how to disable/sample out auto collected HTTP dependencies.

I was trying to configure the sampling-overrides but it didn't work. I couldn't find any dedicated configuration to stop the auto collection either.
This is my last attempt of applicationInsights.json file:

{
  "connectionStringConfiguredAtRuntime": true,
  "instrumentation": {
    "azureSdk": {
      "enabled": false
    }
  },
  "sampling": {
    "percentage": 100
  },
  "preview": {
    "sampling": {
      "overrides": [
        {
          "attributes": [
            {
              "key": "http.type",
              "value": "HTTP",
              "matchType": "strict"
            }
          ],
          "percentage": 0
        }
      ]
    }
  }
}

Will appreciate your assistance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions