feat(relay): enable debug logs for otel collector (#2099)

The `debug` exporter prints statements like the following to stdout:

> 2023-09-07T09:57:43.468-0700 info TracesExporter {"kind": "exporter",
"data_type": "traces", "name": "debug", "resource spans": 1, "spans": 2}

Activating debug logs should give us overall more insight into what this
thing is doing.
This commit is contained in:
Thomas Eizinger
2023-09-21 16:35:19 +10:00
committed by GitHub
parent 9d93d02b48
commit 635a5d4091

View File

@@ -18,6 +18,8 @@ write_files:
googlecloud:
log:
default_log_name: opentelemetry.io/collector-exported-log
debug:
verbosity: detailed
processors:
memory_limiter:
check_interval: 1s
@@ -56,6 +58,9 @@ write_files:
- set(attributes["exported_instrumentation_version"], attributes["instrumentation_version"])
- delete_key(attributes, "instrumentation_version")
service:
telemetry:
logs:
level: "debug"
pipelines:
traces:
receivers: [otlp]