From 729ad568fb3799f4da86808363aadea93d0b3515 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Fri, 15 Sep 2023 15:05:25 -0700 Subject: [PATCH] add debug exporter and switch logging exporter Once the debug exporter is available, we'll want to switch to using it instead of the deprecated logging exporter. Signed-off-by: Alex Boten --- configs/otelcol-contrib.yaml | 6 +++--- configs/otelcol.yaml | 6 +++--- distributions/otelcol-contrib/manifest.yaml | 1 + distributions/otelcol/manifest.yaml | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/configs/otelcol-contrib.yaml b/configs/otelcol-contrib.yaml index 95f59b5f..54e5423f 100644 --- a/configs/otelcol-contrib.yaml +++ b/configs/otelcol-contrib.yaml @@ -35,7 +35,7 @@ processors: batch: exporters: - logging: + debug: verbosity: detailed service: @@ -45,11 +45,11 @@ service: traces: receivers: [otlp, opencensus, jaeger, zipkin] processors: [batch] - exporters: [logging] + exporters: [debug] metrics: receivers: [otlp, opencensus, prometheus] processors: [batch] - exporters: [logging] + exporters: [debug] extensions: [health_check, pprof, zpages] diff --git a/configs/otelcol.yaml b/configs/otelcol.yaml index 95f59b5f..54e5423f 100644 --- a/configs/otelcol.yaml +++ b/configs/otelcol.yaml @@ -35,7 +35,7 @@ processors: batch: exporters: - logging: + debug: verbosity: detailed service: @@ -45,11 +45,11 @@ service: traces: receivers: [otlp, opencensus, jaeger, zipkin] processors: [batch] - exporters: [logging] + exporters: [debug] metrics: receivers: [otlp, opencensus, prometheus] processors: [batch] - exporters: [logging] + exporters: [debug] extensions: [health_check, pprof, zpages] diff --git a/distributions/otelcol-contrib/manifest.yaml b/distributions/otelcol-contrib/manifest.yaml index f31cc729..86bb7211 100644 --- a/distributions/otelcol-contrib/manifest.yaml +++ b/distributions/otelcol-contrib/manifest.yaml @@ -32,6 +32,7 @@ extensions: import: github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/dbstorage exporters: + - gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.85.0 - gomod: go.opentelemetry.io/collector/exporter/loggingexporter v0.85.0 - gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.85.0 - gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.85.0 diff --git a/distributions/otelcol/manifest.yaml b/distributions/otelcol/manifest.yaml index 877463a4..2c2cf198 100644 --- a/distributions/otelcol/manifest.yaml +++ b/distributions/otelcol/manifest.yaml @@ -16,6 +16,7 @@ receivers: - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver v0.85.0 exporters: + - gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.85.0 - gomod: go.opentelemetry.io/collector/exporter/loggingexporter v0.85.0 - gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.85.0 - gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.85.0