I have multiple applications that are using ASP.NET 4.6.2 and I am looking towards Application Inishgts to capture telemetry and logging data. Since this is ASP.NET 4.6.2 there is no app.config where I can toggle the LogLevel and I could not find any details on how I can dynamically set the level of logging and telemetry information to reduce the amount of data being passed to App Insights.
To make this configuration dynamics is another item that I could not find information on, which will come in handy on Production environment where I want to limit the information and change configuration without having to restart the application.
Thanks for you help.
I am looking into sampling, but then I might miss out on important information and will not have complete picture to debug issues.


There are limited mechanisms that can be used to reduce telemetry:
If you want to decide at runtime what telemetry to let pass and what to discard using a telemetry processor would be a great option as each and every telemetry item is passed through the processor.
A simple & naive implementation could be:
This gives you full control and you get the option to base your decision on the type, content and/or severity of the telemetry item.