We are trying to remove or reduce our Application Insights DEPENDENCY logs.
Background: We have a DXP hosted instance of EpiServer. Our custom log entries only appear in application insights intermittently, this seems to be down to throttling and downsampling due to the sheer volume of entries. The biggest culprit seem to be the DEPENDENCY type logs i.e. our mostly idle dev instance has 355K of these log entries per day, and our prod instance has about 1.05M per day. Most of these are meaningless SQL command logs.
Things we have tried so far:
Any advise or suggestions of how to remove these DEPENDENCY logs from being logged would be appreciated
We eventually solved this. The custom ITelemetryProcessor worked once we moved the initialisation from ConfigureServices in Startup.cs to Application_Start in Global.asax instead. I think maybe this allows it to be initiliased earlier in the lifecycle.