-
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
Add/bring back API to programmatically change config #3023
Comments
@pavolloffay you can implement this interface https://github.com/open-telemetry/opentelemetry-collector/blob/main/service/parserprovider/provider.go#L25 |
That is not sufficient and provides a different API with much less flexibility than the API that the PR removed. The I need access to resolved |
@bogdandrutu @tigrannajaryan ^^ Could we think of a solution for this API breaking change? |
@jcchavezs @pavolloffay Short answer, to be convinced show me some use-case where changing the config is necessary and how that would help. If we have an example use-case we can add a "ConfigLoader" interface that takes a Parser and produces the Config, that way you also have that option. |
Our use case is pretty simple: We want to support live config reload, for that we group all the processors of a pipeline into a single macroprocessor. Inside the macroprocessor it is easy and safe to control the processors lifecycle. For that matter we need to intercept the resulting config and:
Given the change I considered the alternative to create my own koanf parser but that would add a lot of burden and make us sensitive to changes in koanf's implementation for the config. My proposal is that Ping @bogdandrutu |
) * add bundle.d/smartagent/postgres k8s rules * Apply suggestions from code review Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]> * Update bundle.d and remove noop change --------- Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
Is your feature request related to a problem? Please describe.
PR #2868 broked API and removed config factory https://github.com/open-telemetry/opentelemetry-collector/pull/2868/files#diff-d6c4c49032868b2ceaa66558ff307319762c635975313d30109923f1faeab594L104. The config factory made it possible to change
config.Config
before supplying it to the service.This API was used in Jaeger to programmatically change config object. It is also used at Traceable to programmatically change configured objects (we wrap processor and make them remotely configurable).
cc) @bogdandrutu
Describe the solution you'd like
API that allows me to change
config.Config
before it gets used by the service.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
The text was updated successfully, but these errors were encountered: