You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds output_paths config field to debug exporter, allowing users to
redirect output to stderr or file paths when use_internal_logger is false.
- Extends Config struct with OutputPaths []string field
- Updates createCustomLogger to honor configured paths (defaults to stdout)
- Adds validation to prevent use with use_internal_logger=true
- Adds validation to reject empty path values
- Updates README with new configuration option
- Adds test coverage for output_paths scenarios
Fixes#10472
Copy file name to clipboardExpand all lines: exporter/debugexporter/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ The following settings are optional:
38
38
Refer to [Zap docs](https://godoc.org/go.uber.org/zap/zapcore#NewSampler) for more details
39
39
on how sampling parameters impact number of messages.
40
40
-`use_internal_logger` (default = `true`): uses the collector's internal logger for output. See [below](#using-the-collectors-internal-logger) for description.
41
+
-`output_paths` (default = `[stdout]` when `use_internal_logger` is `false`): list of destinations for the exporter's output when bypassing the collector logger. Accepts `stdout`, `stderr`, or filesystem paths supported by Zap.
41
42
-`sending_queue` (disabled by default): see [Sending Queue](../exporterhelper/README.md#sending-queue) for the full set of available options.
42
43
43
44
Example configuration:
@@ -138,7 +139,7 @@ This comes with the following consequences:
138
139
139
140
When `use_internal_logger` is set to `false`, the exporter does not use the collector's internal logger.
140
141
Changing the values in `service::telemetry::logs` has no effect on the exporter's output.
141
-
The exporter's output is sent to `stdout`.
142
+
The exporter's output is sent to `stdout` by default and can be redirected via `output_paths`.
0 commit comments