-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[exporter/debug] add ability to set output_paths #14164
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
Open
ishaish103
wants to merge
58
commits into
open-telemetry:main
Choose a base branch
from
ishaish103:10472-debug-exporter-output-paths-ishai
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+302
−18
Open
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
d1b8a24
add ability to set output_paths
ishaish103 fbabe6d
Update exporter/debugexporter/README.md
ishaish103 374c202
fix pr comments
ishaish103 1e9b18b
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 d8feeba
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 5a3232b
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 b4a6b0e
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 c08384d
add tests
ishaish103 30c8ec3
Merge branch 'main' of github.com:open-telemetry/opentelemetry-collec…
ishaish103 4b136fd
Merge branch '10472-debug-exporter-output-paths-ishai' of github.com:…
ishaish103 8bb3be0
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 d725b74
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 c3ee29e
Address PR review comments: add validation and remove redundant fallback
ishaish103 fc1885f
Resolve merge conflicts with upstream/main
ishaish103 15349f4
Fix formatting and regenerate code
ishaish103 071b0e3
Add Makefile to local module and update generated files
ishaish103 22f3245
format
ishaish103 3908483
Fix linter errors
ishaish103 58b0cad
Fix Windows file handle cleanup in tests
ishaish103 a88eacb
Fix remaining linter error: use require for error assertion
ishaish103 a2ee4d0
Exclude local module from test runs
ishaish103 890e9ba
trigger ci
ishaish103 e2d1942
make sure to delete file
ishaish103 a48ff56
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 1c1353a
remove makefile commit
ishaish103 709a284
Merge branch '10472-debug-exporter-output-paths-ishai' of github.com:…
ishaish103 b8433b6
add default
ishaish103 a288646
remove validation
ishaish103 743e1db
remove validation
ishaish103 72905b9
fix test
ishaish103 5b31428
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 435c097
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 be1255f
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 2e01494
improve lock to avoid failing tests
ishaish103 5038a92
Merge branch '10472-debug-exporter-output-paths-ishai' of github.com:…
ishaish103 1725f7e
fix cleanup
ishaish103 83fe581
handle windows cleanup
ishaish103 25e0e95
windows cleanup fix
ishaish103 04bdc17
fix lint
ishaish103 9627bb3
fix cleanup
ishaish103 b7e964a
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 43dccf8
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 654bee5
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 23ba692
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 3f8587e
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 d0523dd
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 997be1c
Refactor config validation and update error messages for output_paths…
ishaish103 e59546d
Merge branch '10472-debug-exporter-output-paths-ishai' of github.com:…
ishaish103 69c5cdf
trigger ci
ishaish103 5ffb8fa
make gogenerate
ishaish103 760793c
trigger ci
ishaish103 6397ad4
format
ishaish103 8548627
trigger ci
ishaish103 2cfb4e2
Merge branch 'main' into 10472-debug-exporter-output-paths-ishai
ishaish103 9c4be19
fix: address PR review comments
ishaish103 5f3cb9e
Merge upstream/main and resolve conflict
ishaish103 b1b21e7
fix: address lint and Windows test failures
ishaish103 349081a
fix: revert unrelated QueueConfig change
ishaish103 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,29 @@ | ||
| # Use this changelog template to create an entry for release notes. | ||
|
|
||
| # One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
| change_type: enhancement | ||
|
|
||
| # The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) | ||
| component: exporter/debug | ||
|
|
||
| # A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
| note: Add `output_paths` configuration option to control output destination when `use_internal_logger` is false | ||
|
|
||
| # One or more tracking issues or pull requests related to the change | ||
| issues: [10472] | ||
|
|
||
| # (Optional) One or more lines of additional information to render under the primary note. | ||
| # These lines will be padded with 2 spaces and then inserted directly into the document. | ||
| # Use pipe (|) for multiline entries. | ||
| subtext: | | ||
| When `use_internal_logger` is set to `false`, the debug exporter now supports configuring the output destination via the `output_paths` option. | ||
| This allows users to send debug exporter output to `stdout`, `stderr`, or a file path. | ||
| The default value is `["stdout"]` to maintain backward compatibility. | ||
|
|
||
| # Optional: The change log or logs in which this entry should be included. | ||
| # e.g. '[user]' or '[user, api]' | ||
| # Include 'user' if the change is relevant to end users. | ||
| # Include 'api' if there is a change to a library API. | ||
| # Default: '[user]' | ||
| change_logs: [] | ||
|
|
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.
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.
Please add a test case for when user sets
output_pathsbut does not setuse_internal_loggertofalse.What should happen then? Shouldn't such config be invalid?
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.
basically the same thing:
throw an error if out_paths is null and set_intenral_logger is false