Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace deprecated
logging
exporter (#3052)
# Summary This PR replaces a deprecated `logging` exporter being used in the local otel collector causing it to bork on startup. replaced with [debug exporter](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/debugexporter/README.md) closes #3019 ## Before ``` docker compose --profile infra up otel-collector [+] Running 4/4 ✔ otel-collector Pulled 6.0s ✔ f269895151d7 Pull complete 0.4s ✔ 5d76f70d74fd Pull complete 4.3s ✔ f5b2992c14e2 Pull complete 4.3s [+] Running 1/1 ✔ Container ftl-otel-collector-1 Recreated 0.3s Attaching to otel-collector-1 otel-collector-1 | Error: failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s): otel-collector-1 | otel-collector-1 | error decoding 'exporters': the logging exporter has been deprecated, use the debug exporter instead otel-collector-1 | 2024/10/09 14:20:57 collector server run finished with error: failed to get config: cannot unmarshal the configuration: decoding failed due to the following error(s): otel-collector-1 | otel-collector-1 | error decoding 'exporters': the logging exporter has been deprecated, use the debug exporter instead otel-collector-1 exited with code 1 ``` ## After ``` docker compose --profile infra up otel-collector [+] Running 1/0 ✔ Container ftl-otel-collector-1 Created 0.0s Attaching to otel-collector-1 otel-collector-1 | 2024-10-09T14:22:14.184Z info [email protected]/service.go:136 Setting up own telemetry... otel-collector-1 | 2024-10-09T14:22:14.184Z info telemetry/metrics.go:70 Serving metrics {"address": "localhost:8888", "metrics level": "Normal"} otel-collector-1 | 2024-10-09T14:22:14.184Z info builders/builders.go:26 Development component. May change in the future. {"kind": "exporter", "data_type": "metrics", "name": "debug"} otel-collector-1 | 2024-10-09T14:22:14.185Z info builders/builders.go:26 Development component. May change in the future. {"kind": "exporter", "data_type": "traces", "name": "debug"} otel-collector-1 | 2024-10-09T14:22:14.185Z info builders/builders.go:26 Development component. May change in the future. {"kind": "exporter", "data_type": "logs", "name": "debug"} otel-collector-1 | 2024-10-09T14:22:14.185Z info [email protected]/service.go:208 Starting otelcol-contrib... {"Version": "0.111.0", "NumCPU": 10} otel-collector-1 | 2024-10-09T14:22:14.185Z info extensions/extensions.go:39 Starting extensions... otel-collector-1 | 2024-10-09T14:22:14.185Z warn [email protected]/warning.go:40 Using the 0.0.0.0 address exposes this server to every network interface, which may facilitate Denial of Service attacks. {"kind": "receiver", "name": "otlp", "data_type": "traces", "documentation": "https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/security-best-practices.md#safeguards-against-denial-of-service-attacks"} otel-collector-1 | 2024-10-09T14:22:14.185Z info [email protected]/otlp.go:112 Starting GRPC server {"kind": "receiver", "name": "otlp", "data_type": "traces", "endpoint": "0.0.0.0:4317"} otel-collector-1 | 2024-10-09T14:22:14.186Z warn [email protected]/warning.go:40 Using the 0.0.0.0 address exposes this server to every network interface, which may facilitate Denial of Service attacks. {"kind": "receiver", "name": "otlp", "data_type": "traces", "documentation": "https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/security-best-practices.md#safeguards-against-denial-of-service-attacks"} otel-collector-1 | 2024-10-09T14:22:14.186Z info [email protected]/otlp.go:169 Starting HTTP server {"kind": "receiver", "name": "otlp", "data_type": "traces", "endpoint": "0.0.0.0:4318"} otel-collector-1 | 2024-10-09T14:22:14.186Z info [email protected]/service.go:234 Everything is ready. Begin running and processing data. ```
- Loading branch information