I have asp.net core web API and we are using application insight to log request, response, customEvents and exception. In appsettings.json I have added instrumentation key like
"ApplicationInsights": {
"InstrumentationKey": "xxxx-xxxxxx-xxxxx-xxxxxxx"
}
I want remove this section and read this key from Keyvalut.
ApplicationInsight instance should be successfully injected through DI in Startup.cs