Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to configure self-diagnostics log verbosity via ENV variable #1422

Closed
LumirH opened this issue Dec 23, 2020 · 0 comments · Fixed by #1433
Closed

Allow to configure self-diagnostics log verbosity via ENV variable #1422

LumirH opened this issue Dec 23, 2020 · 0 comments · Fixed by #1433

Comments

@LumirH
Copy link

LumirH commented Dec 23, 2020

We are using application insights within the Kubernetes environment.
App insights JAR and applicationinsights.json are bundled in the standard docker image and provide good "default" values for all microservices. When we start the docker image, we "personalize" the config through the env variables (set APPLICATIONINSIGHTS_ROLE_NAME, etc...)

One thing I miss is the ability to override the self-diagnostics logging level using ENV variable -- I often need to temporarily increase the verbosity to troubleshoot app insights behavior. At the moment, I need to "replace applicationinsights.json" to do it.

{
"selfDiagnostics": {
"destination": "file+console",
"level": "DEBUG",
}

This is not convenient.
It would be much easier to just set APPLICATIONINSIGHTS_SELFDIAGNOSTICS_LEVEL=DEBUG....

@ghost ghost locked as resolved and limited conversation to collaborators Jul 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant