Skip to content

Conversation

@ysolomchenko
Copy link
Contributor

Why

Towards #4394
Extracted and refactored from #4270

What

File based configuration for General Settings

Tests

CI

Checklist

  • CHANGELOG.md is updated.
  • Documentation is updated.
  • New features are covered by tests.

@ysolomchenko ysolomchenko requested a review from a team as a code owner September 29, 2025 10:41
{
SetupSdk = !configuration.Disabled;
FlushOnUnhandledException = configuration.FlushOnUnhandledException;
}
Copy link
Member

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.

Copy link
Contributor Author

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";
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment added in b380a12

@Kielek Kielek merged commit 7c17e1c into open-telemetry:main Oct 6, 2025
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants