From 94f1a956111a92abdf8b96866b5bd0405af9b494 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Fri, 20 Sep 2024 10:36:10 -0700 Subject: [PATCH 1/2] fix: update references to logging exporter This exporter has been replaced by the debug exporter and will be removed soon Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- examples/metrics_sdk/README.md | 8 ++++---- examples/otel-collector/otel-collector-config.yaml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/metrics_sdk/README.md b/examples/metrics_sdk/README.md index 3ba206d78..427a39fb2 100644 --- a/examples/metrics_sdk/README.md +++ b/examples/metrics_sdk/README.md @@ -36,8 +36,8 @@ receivers: # Default endpoints: 0.0.0.0:4317 for gRPC and 0.0.0.0:4318 for HTTP exporters: - logging: - loglevel: debug + debug: + verbosity: detailed processors: batch: @@ -47,11 +47,11 @@ service: traces: receivers: [otlp] processors: [batch] - exporters: [logging] + exporters: [debug] metrics: receivers: [otlp] processors: [batch] - exporters: [logging] + exporters: [debug] ``` More information on how to setup the OTel collector can be found in the in [quick start docs](https://opentelemetry.io/docs/collector/quick-start/). diff --git a/examples/otel-collector/otel-collector-config.yaml b/examples/otel-collector/otel-collector-config.yaml index 997fc86aa..d997b6404 100644 --- a/examples/otel-collector/otel-collector-config.yaml +++ b/examples/otel-collector/otel-collector-config.yaml @@ -5,7 +5,7 @@ receivers: http: exporters: - logging: + debug: zipkin: endpoint: "http://zipkin-all-in-one:9411/api/v2/spans" @@ -23,8 +23,8 @@ service: traces: receivers: [otlp] processors: [batch] - exporters: [logging, zipkin, jaeger] + exporters: [debug, zipkin, jaeger] metrics: receivers: [otlp] processors: [batch] - exporters: [logging] + exporters: [debug] From 0b64077b6656bd75fdaf55410af563f59c8e517c Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:33:13 -0700 Subject: [PATCH 2/2] update example to use v0.109.0 of the collector Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- examples/otel-collector/.env | 2 +- examples/otel-collector/otel-collector-config.yaml | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/otel-collector/.env b/examples/otel-collector/.env index d9c19232c..2a845851e 100644 --- a/examples/otel-collector/.env +++ b/examples/otel-collector/.env @@ -1,2 +1,2 @@ -OTELCOL_IMG=otel/opentelemetry-collector-contrib:0.35.0 +OTELCOL_IMG=otel/opentelemetry-collector-contrib:0.109.0 OTELCOL_ARGS= diff --git a/examples/otel-collector/otel-collector-config.yaml b/examples/otel-collector/otel-collector-config.yaml index d997b6404..9484b84b9 100644 --- a/examples/otel-collector/otel-collector-config.yaml +++ b/examples/otel-collector/otel-collector-config.yaml @@ -3,6 +3,7 @@ receivers: otlp: protocols: http: + endpoint: 0.0.0.0:4318 exporters: debug: @@ -11,9 +12,10 @@ exporters: endpoint: "http://zipkin-all-in-one:9411/api/v2/spans" format: proto - jaeger: - endpoint: jaeger-all-in-one:14250 - insecure: true + otlp: + endpoint: jaeger-all-in-one:4317 + tls: + insecure: true processors: batch: @@ -23,7 +25,7 @@ service: traces: receivers: [otlp] processors: [batch] - exporters: [debug, zipkin, jaeger] + exporters: [debug, zipkin, otlp] metrics: receivers: [otlp] processors: [batch]