-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 config.Config
and config.Service
, use service.Config*
#4608
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4608 +/- ##
=======================================
Coverage 90.63% 90.63%
=======================================
Files 190 190
Lines 11435 11435
=======================================
Hits 10364 10364
Misses 851 851
Partials 220 220
Continue to review full report at Codecov.
|
edb2a4f
to
b185d13
Compare
6e6b389
to
7db60cb
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
ping @open-telemetry/collector-approvers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Given that there were questions and arguments in favour and against this change in the issue I would like other approvers to also have a look at this.
I don't think my questions and concerns from #4605 have been addressed. I still don't know what the plan is here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reviewing the code in the PR I think the only question i have is the same as @Aneurysm9 mentioned before around what the plan to decouple configunmarshaler
is
@codeboten I keep thinking about the need to expose |
e2aed2a
to
1e86f44
Compare
This comment was marked as resolved.
This comment was marked as resolved.
1e86f44
to
5c99c54
Compare
df52ad2
to
0c20627
Compare
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Folllowup: * When the deprecated funcs/types are removed the internal package can be moved to service/internal. * Part of #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 #4608 (review) Updates #4605 Signed-off-by: Bogdan Drutu <[email protected]>
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
898740c
to
11d708f
Compare
config.Config
and config.Service
to serviceconfig
config.Config
and config.Service
, use service.Config*
After some time, I got to the state you asked for. We don't have any circular dependency with |
Fixes open-telemetry#4605 Followup PRs: * Move service/internal/configunmarshaler as private struct into service/ to avoid circular dependency (no public API change) * Change service/internal/builders to private structs in service/ or don't pass config, instead only pass the components and pipeline from the config. While doing this, I realize that the "service" section in our config is a bit useless, we can think of promoting everything under "service::" one level up. Signed-off-by: Bogdan Drutu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one comment, otherwise the change looks good.
…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 <[email protected]>
Fixes #4605
Followup PRs:
While doing this, I realize that the "service" section in our config is a bit useless, we can think of promoting everything under "service::" one level up.