-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
The "extension" configuration item of the configuration file is overwritten #32050
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Thanks for opening this. You're right, this is currently an issue due to the way the Collector's underlying conf library merges lists. A potential fix in the Collector has been documented here: open-telemetry/opentelemetry-collector#8754. For now, I have an open PR that will introduce a fix for the Supervisor in the meantime: #31641 |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Reply to ensure the issue remains open |
@mike9421 can you verify with the latest changes given the following code has been added to address the issue opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/supervisor.go Lines 1366 to 1385 in 92e336e
|
Component(s)
cmd/opampsupervisor
What happened?
Description
When I delivered the remote configuration through the OpAMP sample server, I found that the
extension
in the final configuration of OTEL was cleared, leaving onlyhealth_check
.Steps to Reproduce
Expected Result
The extension component I added is not cleared, at most
health_check
is addedActual Result
The extension component I added was cleared
Collector version
all
Environment information
OS: Darwin
Compiler: go 1.21
OpenTelemetry Collector configuration
Log output
No response
Additional context
I know that the extensions configuration item is overwritten in this code.
The fundamental reason is that
koanf
cannot parseextensions
into key-value form, so the previous value will be overwritten.I think we can solve this problem by adding configuration items to
extensions
instead of executingkoanf.merge
directly.The text was updated successfully, but these errors were encountered: