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 service.ConfigMapConverterFunc to config.MapConverterFunc #4673

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

bogdandrutu
Copy link
Member

The drop of the Config prefix from the func name was forced by go lint, which does not like to repeat the package name as the prefix for types.

Signed-off-by: Bogdan Drutu [email protected]

The drop of the Config prefix from the func name was forced by go lint, which does not like to repeat the package name as the prefix for types.

Signed-off-by: Bogdan Drutu <[email protected]>
@codecov
Copy link

codecov bot commented Jan 12, 2022

Codecov Report

Merging #4673 (c71b003) into main (f5d646f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4673   +/-   ##
=======================================
  Coverage   90.72%   90.72%           
=======================================
  Files         179      179           
  Lines       10627    10627           
=======================================
  Hits         9641     9641           
  Misses        765      765           
  Partials      221      221           
Impacted Files Coverage Δ
config/configmap.go 85.26% <ø> (ø)
config/configmapprovider/properties.go 100.00% <100.00%> (ø)
service/config_provider.go 91.58% <100.00%> (ø)
service/internal/configprovider/expand.go 100.00% <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 f5d646f...c71b003. Read the comment docs.

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

LGTM.
@Aneurysm9 this is a breaking change, but should be an easy fix if you depend on it in your distro, so I assume not a problem, right?

Copy link
Member

@Aneurysm9 Aneurysm9 left a comment

Choose a reason for hiding this comment

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

this is a breaking change, but should be an easy fix if you depend on it in your distro, so I assume not a problem, right?

Yes, I believe we can work with this. #4672 is more important to address breakage that we could not fix without code duplication.

I think the addition of a context.Context to this function signature is a valuable addition and was done in #4668 so could be done here, but as long as it is done before the next release there wouldn't need to be two breaking changes here to deal with.

Comment on lines +35 to +36
// TODO: Consider to add a context as the first argument.
type MapConverterFunc func(*Map) error
Copy link
Member

Choose a reason for hiding this comment

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

I believe that this is a valuable addition and should be done now.

@bogdandrutu bogdandrutu merged commit 0bb3c8c into open-telemetry:main Jan 13, 2022
@bogdandrutu bogdandrutu deleted the mvcfgmapconv branch January 13, 2022 17:12
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.

4 participants