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

Move MapProvider to config, split providers in separate packages #5030

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

bogdandrutu
Copy link
Member

This PR:

  1. moves the configmapprovider.Provider to config.MapProvider and related structs.
  2. every provider (env, file, yaml) are split in their own packages to help Allow builder to accept multiple config providers #4759.

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

@bogdandrutu bogdandrutu requested a review from a team as a code owner March 17, 2022 11:02
@bogdandrutu bogdandrutu force-pushed the mvmapprovider branch 2 times, most recently from 2337822 to b11df60 Compare March 17, 2022 11:05
@codecov
Copy link

codecov bot commented Mar 17, 2022

Codecov Report

Merging #5030 (44c9122) into main (270e0cb) will decrease coverage by 0.02%.
The diff coverage is 97.29%.

@@            Coverage Diff             @@
##             main    #5030      +/-   ##
==========================================
- Coverage   91.07%   91.04%   -0.03%     
==========================================
  Files         180      180              
  Lines       10810    10810              
==========================================
- Hits         9845     9842       -3     
- Misses        747      749       +2     
- Partials      218      219       +1     
Impacted Files Coverage Δ
config/mapprovider/filemapprovider/mapprovider.go 82.35% <90.00%> (ø)
config/configtest/configtest.go 100.00% <100.00%> (ø)
config/mapprovider/envmapprovider/mapprovider.go 100.00% <100.00%> (ø)
config/mapprovider/yamlmapprovider/mapprovider.go 100.00% <100.00%> (ø)
service/config_provider.go 94.23% <100.00%> (ø)

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 270e0cb...44c9122. Read the comment docs.

@bogdandrutu bogdandrutu force-pushed the mvmapprovider branch 3 times, most recently from 63e0715 to 141bd61 Compare March 17, 2022 11:24
config/configmapprovider/expand_test.go Outdated Show resolved Hide resolved
config/configmapprovider/provider.go Outdated Show resolved Hide resolved
config/configmapprovider/provider.go Outdated Show resolved Hide resolved
config/filemapprovider/mapprovider_test.go Outdated Show resolved Hide resolved
config/filemapprovider/mapprovider_test.go Outdated Show resolved Hide resolved
config/envmapprovider/mapprovider_test.go Outdated Show resolved Hide resolved
config/envmapprovider/mapprovider_test.go Outdated Show resolved Hide resolved
config/internal/configsource/manager.go Outdated Show resolved Hide resolved
config/internal/configsource/manager.go Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu changed the title Move MapProvider to config, split providers per own package Move MapProvider to config, split providers in separate packages Mar 17, 2022
@bogdandrutu bogdandrutu force-pushed the mvmapprovider branch 2 times, most recently from 15accac to f2cc310 Compare March 21, 2022 10:20
This PR:
1. moves the `configmapprovider.Provider` to `config.MapProvider` and related structs.
2. every provider (env, file, yaml) are split in their own packages to help open-telemetry#4759.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu merged commit e02b1c4 into open-telemetry:main Mar 23, 2022
@bogdandrutu bogdandrutu deleted the mvmapprovider branch March 23, 2022 08:27
Nicholaswang pushed a commit to Nicholaswang/opentelemetry-collector that referenced this pull request Jun 7, 2022
…n-telemetry#5030)

This PR:
1. moves the `configmapprovider.Provider` to `config.MapProvider` and related structs.
2. every provider (env, file, yaml) are split in their own packages to help open-telemetry#4759.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
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.

None yet

5 participants