I am trying to turn on/off the appinsights in my asp.net code proramatically based on the flag returned from DB. When i research, I found the below settings in app_start. But not sure if the samething can be achieved in anywhere of the code dynamically
Disable application insights in debug
Please let me know your suggestions.
Thank you!