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

Improve configuration story #90

Merged
merged 3 commits into from
May 2, 2024
Merged

Conversation

stevejgordon
Copy link
Contributor

Updates the configuration implementation to allow loading of options from IConfiguration as well as loading from environment variables. The primary implementation for review is in ElasticOpenTelemetryOptions. For most other changes, just update to use this and apply the configuration.

Adds documentation for the current configuration options.

Adds tests around the loading of configuration.

Closes #62
Closes #61
Closes #52

This relates to #83 as we add configuration to support this scenario.

@stevejgordon stevejgordon requested a review from Mpdreamz May 1, 2024 15:12
@stevejgordon stevejgordon requested a review from Mpdreamz May 2, 2024 13:19
@stevejgordon
Copy link
Contributor Author

@Mpdreamz In my refactoring I'd lost the logic to fallback to the logging section. I've reimplemented that in the latest commit and updated the `LoggingEventListener" so it uses the options value now.

Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

Lgtm!

@stevejgordon stevejgordon merged commit 596bd9c into main May 2, 2024
4 of 5 checks passed
@stevejgordon stevejgordon deleted the configuration-enhancements branch May 2, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants