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 package #4178

Merged
merged 4 commits into from Oct 19, 2021

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented Oct 6, 2021

Description:

  • Move parserprovider.MapProvider interface to config.MapProvider.
  • Move and rename parserprovider.Watchable to config.WatchableMapProvider.

Link to tracking Issue: Updates #4177

@mx-psi mx-psi changed the title Rename service/parserprovider to config Move service/parserprovider to config Oct 6, 2021
@mx-psi mx-psi marked this pull request as ready for review October 6, 2021 11:54
@mx-psi mx-psi requested a review from a team as a code owner October 6, 2021 11:54
@mx-psi mx-psi requested a review from owais October 6, 2021 11:54
@bogdandrutu
Copy link
Member

I would definitely move the interface, the implementations may live in other place

@mx-psi
Copy link
Member Author

mx-psi commented Oct 6, 2021

I would definitely move the interface, the implementations may live in other place

@bogdandrutu What about moving the interface to config and moving the implementations under service/mapprovider (i.e. renaming parserprovider to mapprovider)? Does that sound like a good idea?

@mx-psi mx-psi changed the title Move service/parserprovider to config Move MapProvider to config package Oct 8, 2021
@mx-psi
Copy link
Member Author

mx-psi commented Oct 8, 2021

Second attempt, updated description with changes; @bogdandrutu PTAL

@codecov
Copy link

codecov bot commented Oct 8, 2021

Codecov Report

Merging #4178 (ffcae82) into main (beb76e4) will decrease coverage by 0.08%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4178      +/-   ##
==========================================
- Coverage   87.73%   87.64%   -0.09%     
==========================================
  Files         174      174              
  Lines       10335    10291      -44     
==========================================
- Hits         9067     9020      -47     
- Misses       1016     1018       +2     
- Partials      252      253       +1     
Impacted Files Coverage Δ
service/collector.go 66.26% <0.00%> (ø)
service/parserprovider/default.go 100.00% <100.00%> (ø)
service/parserprovider/expand.go 75.51% <100.00%> (ø)
service/parserprovider/file.go 100.00% <100.00%> (ø)
service/parserprovider/inmemory.go 100.00% <100.00%> (ø)
service/parserprovider/merge.go 84.21% <100.00%> (ø)
service/parserprovider/properties.go 89.65% <100.00%> (ø)
receiver/scraperhelper/scraper.go 88.88% <0.00%> (-11.12%) ⬇️
config/configgrpc/configgrpc.go 92.30% <0.00%> (-0.15%) ⬇️
config/confighttp/confighttp.go 100.00% <0.00%> (ø)
... and 1 more

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 beb76e4...ffcae82. Read the comment docs.

Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

Let's do the following:

  1. Move just the interface in the first PR, also add CHANGELOG entry.
  2. Second PR moves the other code, also add CHANGELOG entry.

config/provider.go Outdated Show resolved Hide resolved
@mx-psi mx-psi force-pushed the mx-psi/rename-mapprovider branch 2 times, most recently from dcc969b to bd1c6ea Compare October 18, 2021 15:10
@bogdandrutu bogdandrutu merged commit f85f13e into open-telemetry:main Oct 19, 2021
@mx-psi mx-psi deleted the mx-psi/rename-mapprovider branch October 19, 2021 16:47
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

2 participants