Collector fails to start: `error decoding 'exporters': unknown type: "loki"`
IntermediateTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer
Likely causes → The component isn't included in the distribution (core vs contrib), or it was removed/deprecated (the loki exporter was replaced by sending OTLP to Loki 3.x).
Diagnose → otelcol-contrib components lists available components.
Fix → Use the contrib image (otel/opentelemetry-collector-contrib), or switch to the supported path (otlphttp exporter to Loki's /otlp endpoint).
Prevent → Pin collector versions and read changelogs; build a custom distro with ocb for exactly what you need.
More on Tracing, OpenTelemetry and CloudWatch
Traces show only the frontend span; downstream services start new tracesIntermediateTraces break at the API gateway / ingress controllerIntermediateNo traces at all arrive; the app logs `Failed to export spans. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:4317`BeginnerSDK error `Unimplemented` / `404 Not Found` when exporting to the collectorIntermediateOTel collector logs `Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "traces", "name": "otlp", "error": "rpc error: code = Unavailable desc = connection error"}`IntermediateCollector logs `Dropping data because sending_queue is full`Advanced