Collector `prometheusremotewrite` exporter logs `Permanent error: ... 400 Bad Request: out of order sample`
AdvancedTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer
Likely causes → Multiple collector replicas send the same series (e.g. same prometheus receiver scrape config on every replica), or batching reorders samples.
Diagnose → Check whether series labels identify the collector replica; count collector pods running the scrape.
Fix → Shard scraping with the Target Allocator (OTel Operator) or run scrape receivers as a single StatefulSet; add a unique collector resource attribute; enable out-of-order on the backend if needed.
Prevent → Treat scraping in collectors like Prometheus: one scraper per target.
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