-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[confmap] Add ability to set default provider #10182
[confmap] Add ability to set default provider #10182
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10182 +/- ##
=======================================
Coverage 92.46% 92.46%
=======================================
Files 387 387
Lines 18246 18264 +18
=======================================
+ Hits 16871 16888 +17
- Misses 1028 1029 +1
Partials 347 347 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
…lmuth/opentelemetry-collector into confmap-default-provider
#### Description Add a new test scenarios to confmap expand tests #### Link to tracking issue Related to #10182 (comment)
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.
Looks good to me, I like the implementation approach we ended up on.
Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
#### Description Add a new test scenarios to confmap expand tests #### Link to tracking issue Related to open-telemetry#10182 (comment)
#### Description This PR adds support for expanding `${}` syntax when no schema is provided by allowing Resolver to use a default provider. In a followup PR I'll update otelcol with a feature gate that allow switching between a default envProvider and the expandconverter. #### Link to tracking issue Related to open-telemetry#10161 Related to open-telemetry#7111 #### Testing Added unit tests #### Documentation Added godoc strings --------- Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
Description
This PR adds support for expanding
${}
syntax when no schema is provided by allowing Resolver to use a default provider.In a followup PR I'll update otelcol with a feature gate that allow switching between a default envProvider and the expandconverter.
Link to tracking issue
Related to #10161
Related to #7111
Testing
Added unit tests
Documentation
Added godoc strings