-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[otelcol] Fix missing defaults in unredacted print-config #14752
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
Merged
mx-psi
merged 21 commits into
open-telemetry:main
from
EdgeN8v:fix/14750-unredacted-defaults
Apr 6, 2026
Merged
Changes from 12 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
18410b7
fix(otlphttpexporter): unwrap url.Error to show actual modified desti…
EdgeN8v a283a19
[otelcol] Fix unredacted print-config omitting default values
EdgeN8v c642ac7
Fix changelog component name
EdgeN8v 18ed377
Fix govet shadow lint error
EdgeN8v c6eb283
Add unit tests for restoreSecrets slice and nested logic
EdgeN8v 88c822b
Fix code formatting by adding blank line
EdgeN8v 10bb21d
Remove unused errOnlyRedacted field
EdgeN8v e3e74cf
Fix struct field alignment after removing errOnlyRedacted
EdgeN8v e84b6e6
refactor: introduce confmap.MarshalOption for unredacted config printing
EdgeN8v ea53c2f
fix: manually resolve test conflict and fix changelog yaml array format
EdgeN8v 270327f
style: fix formatting, trailing spaces, and missing newlines
EdgeN8v c4fb3e6
docs: specify issue number in changelog
EdgeN8v 2a0bbb0
refactor: decouple mapstructure unredacted hook and format code
EdgeN8v 8885dbf
style: fix formatting
EdgeN8v 6b249c2
test: add missing unit tests for unredacted unmarshaling to satisfy C…
EdgeN8v c6b43b1
build: run make gotidy to remove unused assert dependencies
EdgeN8v 37e323e
refactor: use reflection for unredacted print, revert configopaque, a…
EdgeN8v 0d0e628
Merge branch 'main' into fix/14750-unredacted-defaults
EdgeN8v 4e12171
Apply suggestion from @VihasMakwana
dmathieu a7ba2c4
Merge branch 'main' into fix/14750-unredacted-defaults
EdgeN8v b724310
Merge branch 'main' into fix/14750-unredacted-defaults
mx-psi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| change_type: bug_fix | ||
| component: pkg/otelcol | ||
| note: Fix missing default values in unredacted print-config command by introducing confmap.WithUnredacted MarshalOption. | ||
| subtext: | | ||
| Resolves an issue where the unredacted mode output omitted all default-valued options. By introducing a new MarshalOption to disable redaction directly at the confmap encoding level, the unredacted mode now preserves all component defaults natively without requiring post-processing. | ||
| issues: [14750] | ||
| change_logs: [user] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This feels like quite a subtle tight coupling to
configopaque.Opaque. Instead, perhaps we should introduce an interface likeand have
configopaque.Opaqueimplement it.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.
++