Skip to content

[exporter/debug] make the output stream configurable when use_internal_logger is false #10472

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
jedr opened this issue Jun 27, 2024 · 1 comment · May be fixed by #13066
Open

[exporter/debug] make the output stream configurable when use_internal_logger is false #10472

jedr opened this issue Jun 27, 2024 · 1 comment · May be fixed by #13066
Assignees
Labels
enhancement New feature or request exporter/debug Issues related to the Debug exporter help wanted Good issue for contributors to OpenTelemetry Service to pick up

Comments

@jedr
Copy link

jedr commented Jun 27, 2024

Is your feature request related to a problem? Please describe.

With #10227, users can set use_internal_logger to false to not use the collector's internal logger for output. In this case, the logs are sent to stdout and there is no way to change this.

Describe the solution you'd like

Add configuration option to the Debug exporter to change the output stream from stdout to e.g. stderr or maybe another file.

Describe alternatives you've considered

Leave this not configurable and have users redirect the standard output from the collector on operating system / console level.

Additional context

When use_internal_logger is true (currently the default), the exporter's output is sent to stderr together with all other logs from the collector. This configurable via service::telemetry::logs::output_paths.

@jedr jedr changed the title [exporter/debug] make the output stream configurable when using use_internal_logger=false [exporter/debug] make the output stream configurable when use_internal_logger isfalse Jun 27, 2024
@jedr jedr changed the title [exporter/debug] make the output stream configurable when use_internal_logger isfalse [exporter/debug] make the output stream configurable when use_internal_logger is false Jun 27, 2024
@andrzej-stencel andrzej-stencel added the exporter/debug Issues related to the Debug exporter label Jun 27, 2024
@andrzej-stencel andrzej-stencel added help wanted Good issue for contributors to OpenTelemetry Service to pick up enhancement New feature or request labels Apr 23, 2025
@jackgopack4
Copy link
Contributor

yeah this seems reasonable; it looks like there is a note in that section of debugexporter config that says "we should make this configurable" or something similar. I've opened a PR that should close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exporter/debug Issues related to the Debug exporter help wanted Good issue for contributors to OpenTelemetry Service to pick up
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants