No 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`
BeginnerTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer
Likely causes → The SDK defaults to localhost:4317 but the collector runs elsewhere (DaemonSet on the node, or a Service).
Diagnose → Check OTEL_EXPORTER_OTLP_ENDPOINT and that the collector listens: kubectl get svc -n observability.
Fix → Set OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector.observability:4317 (gRPC) or :4318 with OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf. For a node agent use the downward API status.hostIP.
Prevent → Inject OTel env vars via the OpenTelemetry Operator Instrumentation CR.
More on Tracing, OpenTelemetry and CloudWatch
Traces show only the frontend span; downstream services start new tracesIntermediateTraces break at the API gateway / ingress controllerIntermediateSDK 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`AdvancedCollector pod is OOMKilled under loadIntermediate