ApplicationInsights-node.js icon indicating copy to clipboard operation
ApplicationInsights-node.js copied to clipboard

Fine-grained control of sampling?

Open bradoyler opened this issue 3 years ago • 3 comments

Function apps have this config for sampling applicationInsights.

"applicationInsights": {
        "samplingSettings": {
          "isEnabled": true,
          "maxTelemetryItemsPerSecond": 5,
          "evaluationInterval": "01:00:00",
          "initialSamplingPercentage": 10.0,
          "samplingPercentageIncreaseTimeout": "00:00:01",
          "samplingPercentageDecreaseTimeout": "00:00:01",
          "minSamplingPercentage": 0.1,
          "maxSamplingPercentage": 20.0,
          "movingAverageRatio": 1.0,
          "excludedTypes": "Event;Exception;Request",
          "includedTypes": "Dependency;Trace"
        }
      }

Would it be possible to enable similar config for this SDK?

Simple use case would be to adjust sampling just for Dependency;Trace calls and NOT apply sampling to Event;Exception;Request

bradoyler avatar Aug 18 '20 15:08 bradoyler

Was looking for this as well. I want all my exceptions but sample everything else...

AmberWilkie avatar Dec 15 '20 19:12 AmberWilkie

Any news on this?

ricardo-devis-agullo avatar Dec 19 '22 15:12 ricardo-devis-agullo

still no sampling on node js?

tudor33sud avatar Jan 22 '23 10:01 tudor33sud