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

Add an option to allow config.Map conversion in the service.ConfigProvider #4634

Merged
merged 1 commit into from Jan 5, 2022

Conversation

bogdandrutu
Copy link
Member

This is to allow backwards compatible "converters" to be implemented and still benefit of the default ConfigProvider implementation, as well as helping previous implementations which had a custom "config.MapProvider" to still use that + the new service.NewDefaultConfigProvider.

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

@bogdandrutu bogdandrutu requested a review from a team as a code owner January 4, 2022 23:12
@project-bot project-bot bot added this to In progress in Collector Jan 4, 2022
@codecov
Copy link

codecov bot commented Jan 4, 2022

Codecov Report

Merging #4634 (efe430c) into main (4439e9b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head efe430c differs from pull request most recent head c5cbab5. Consider uploading reports for the commit c5cbab5 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4634   +/-   ##
=======================================
  Coverage   90.36%   90.36%           
=======================================
  Files         181      181           
  Lines       10595    10598    +3     
=======================================
+ Hits         9574     9577    +3     
  Misses        797      797           
  Partials      224      224           
Impacted Files Coverage Δ
service/config_provider.go 88.88% <100.00%> (+0.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4439e9b...c5cbab5. Read the comment docs.

CHANGELOG.md Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu force-pushed the cfgmapconverte branch 2 times, most recently from 900278a to 3ad8d99 Compare January 5, 2022 00:06
service/config_provider.go Outdated Show resolved Hide resolved
Collector automation moved this from In progress to Reviewer approved Jan 5, 2022
…4595)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu merged commit 60e0cf6 into open-telemetry:main Jan 5, 2022
Collector automation moved this from Reviewer approved to Done Jan 5, 2022
@bogdandrutu bogdandrutu deleted the cfgmapconverte branch January 5, 2022 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants