Telemetry sampling without affecting the errors/failures
I want to log a percentage of the success calls in app insights. I came across this post https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling and I think Fixed-rate sampling is appropriate here. But does this affect all logging equally? Will some errors/failures no longer be logged? I am looking for a solution that logs a percentage of the success calls, but keeps all failed requests/errors. I don't think this is supported out of the box, but you can write your own ITelemetryProcessor . See: https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-filtering-sampling#filtering