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

Deprecate configunmarshaler package, move it to internal #5151

Merged
merged 3 commits into from
Apr 15, 2022

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Apr 5, 2022

Folllowup:

  • When the deprecated funcs/types are removed the internal package can be moved to service/internal.

Motivation:

  • This package is removed because with the latest addition of the service.ConfigProvider the usecase to change the unmarshaled config.Config can be achieved by wrapping/implementing that interface, so no clear use-case for this. In the future we can expose it again if we have good reasons.
  • During the review of another PR, this was mentioned as something some approvers/maintainers were concerned about what to do with this package. See Deprecate config.Config and config.Service, use service.Config* #4608 (review)

Updates #4605

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

@bogdandrutu bogdandrutu requested review from a team and codeboten April 5, 2022 17:39
@bogdandrutu bogdandrutu force-pushed the depcfgunmarshaler branch 3 times, most recently from 7a33b81 to 78c0634 Compare April 5, 2022 17:50
@codecov
Copy link

codecov bot commented Apr 5, 2022

Codecov Report

Merging #5151 (a2d37e1) into main (9585fd9) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #5151      +/-   ##
==========================================
- Coverage   90.51%   90.48%   -0.03%     
==========================================
  Files         186      187       +1     
  Lines       11033    11041       +8     
==========================================
+ Hits         9987     9991       +4     
- Misses        824      827       +3     
- Partials      222      223       +1     
Impacted Files Coverage Δ
service/config_provider.go 92.24% <ø> (ø)
service/servicetest/configprovider.go 76.92% <ø> (ø)
config/common.go 100.00% <100.00%> (ø)
config/exporter.go 90.90% <100.00%> (+2.02%) ⬆️
config/extension.go 90.90% <100.00%> (+2.02%) ⬆️
config/processor.go 90.90% <100.00%> (+2.02%) ⬆️
config/receiver.go 90.90% <100.00%> (+2.02%) ⬆️
internal/configunmarshaler/defaultunmarshaler.go 100.00% <100.00%> (ø)
pdata/internal/common.go 94.16% <0.00%> (-0.78%) ⬇️

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 9585fd9...a2d37e1. Read the comment docs.

@bogdandrutu bogdandrutu force-pushed the depcfgunmarshaler branch 3 times, most recently from e4017f1 to 46e34c8 Compare April 5, 2022 18:18
@bogdandrutu

This comment was marked as outdated.

@bogdandrutu
Copy link
Member Author

@codeboten PTAL.

Folllowup:

* When the deprecated funcs/types are removed the internal package can be moved to service/internal.
* Part of open-telemetry#4936 do not offer ability to configure ConfigUnmarshaler.

Motivation:

* This package is removed because with the latest addition of the `service.ConfigProvider` the usecase to change the unmarshaled config.Config can be achieved by wrapping/implementing that interface, so no clear use-case for this. In the future we can expose it again if we have good reasons.
* During the review of another PR, this was mentioned as something some approvers/maintainers were concerned about what to do with this package. See open-telemetry#4608 (review)
Updates open-telemetry#4605

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu merged commit 80e7984 into open-telemetry:main Apr 15, 2022
@bogdandrutu bogdandrutu deleted the depcfgunmarshaler branch April 15, 2022 16:02
Nicholaswang pushed a commit to Nicholaswang/opentelemetry-collector that referenced this pull request Jun 7, 2022
…try#5151)

Folllowup:

* When the deprecated funcs/types are removed the internal package can be moved to service/internal.
* Part of open-telemetry#4936 do not offer ability to configure ConfigUnmarshaler.

Motivation:

* This package is removed because with the latest addition of the `service.ConfigProvider` the usecase to change the unmarshaled config.Config can be achieved by wrapping/implementing that interface, so no clear use-case for this. In the future we can expose it again if we have good reasons.
* During the review of another PR, this was mentioned as something some approvers/maintainers were concerned about what to do with this package. See open-telemetry#4608 (review)
Updates open-telemetry#4605

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.

2 participants