-
Notifications
You must be signed in to change notification settings - Fork 123
[FileBasedConfiguration] General Settings #4481
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
[FileBasedConfiguration] General Settings #4481
Conversation
| { | ||
| SetupSdk = !configuration.Disabled; | ||
| FlushOnUnhandledException = configuration.FlushOnUnhandledException; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mandatory for this PR: You need to set up here also ProfilerEnabled (by fallback to envs).
Plugins are alsoe required, but it can be configured also from the file. If you want to make a follow up PR, you need to ensure that it is extracted to separate setting, and readed from EvnVars.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plugins will be added in separate PR.
| FlushOnUnhandledException = configuration.FlushOnUnhandledException; | ||
|
|
||
| ProfilerEnabled = configuration.EnableProfiling; | ||
| ProfilerEnabled = Environment.GetEnvironmentVariable(ConfigurationKeys.ProfilingEnabled) == "1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can put here some comment why you are using direclty env vars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment added in b380a12
Why
Towards #4394
Extracted and refactored from #4270
What
File based configuration for General Settings
Tests
CI
Checklist
CHANGELOG.mdis updated.