Skip to content

Troubleshooting

Run ctxflow-otel check with the same variables as your app. It tells you whether the key is accepted and which project and environment it sends to. Without the SDK, one curl request does the same. Both are on Verify your setup.

Symptom Cause and fix
Nothing arrives; exporter or collector log says 401 Wrong, revoked or missing key. Direct: check OTEL_EXPORTER_OTLP_HEADERS (Authorization=Bearer%20<key>). Collector: check CTXFLOW_API_KEY. The key list shows “Rejected · revoked” or “wrong secret”; an unknown key leaves no mark.
Nothing arrives, no error A short script exits before the batch is sent: call provider.shutdown(). Or ctxflow-instrument started without telemetry because of an invalid CTXFLOW_* value: read the app log. Or OTEL_SDK_DISABLED=true.
Nothing arrives through the collector, health check green The health check only says the process is up. Look for context deadline exceeded (network) or 401 in the collector log.
Data arrives, but in the wrong environment (for example Development) An API key sends to the one environment it was created in. Check the identity line of ctxflow-otel check and use a key of the right environment (Which environment does my key send to?).
Turns appear, but no conversation or user No session.id / gen_ai.conversation.id / user.id: wrap turns in ctxflow_otel.conversation(...) (Identity). Across MCP, keep baggage in OTEL_PROPAGATORS.
Tokens and model show “n/a” The model span has no gen_ai.operation.name (Agent turns).
The turn is rebuilt on the HTTP span, or two turns look like one The turn is the outermost agent span of the trace, one per trace: How ctxflow finds the turn.
The turn detail shows “No text received” The app sent no text (the instrumentation hides content), or the text was cut by a size cap or has expired. With Store text off the turn detail says so.
400 from ingestion Content in a resource or scope attribute, a known ctxflow.* key with a value of the wrong type, a duplicate attribute key, or an invalid id. The message names the key. An unknown ctxflow.* key is not an error: it is left out and counted on Data received (OTLP endpoint).
Every item is unknown · no_item_hash No ctxflow.source_hash in the chunk metadata or the ingestion writes. Use the ingestion extras or ctxflow_otel.source_hash (Source identity).
Every item is stale · hash_mismatch The hash is not of the original file bytes (parsed text, chunk).
Items are unknown · no_source_signal, Sources empty No ingest.parse spans: instrument your ingestion (Ingestion).
Never retrieved is “n/a: the retriever does not return the chunk_id” The ids on the retrieval span do not match the ids written by ingestion. Return the same chunk ids.
Chunks replaced by a re-ingestion stay live in Index No ingest.delete spans: no extra emits them. Emit them yourself where your pipeline deletes (Deletions).
The collector does not start: unknown type: "usage" Your config lists the removed usage processor. Delete it from processors and from the pipeline (Processors).
A WARNING says CTXFLOW_USAGE ignored The variable has no effect. Remove it (Configuration).
ImportError or no MCP propagation with init() Call init() before importing the MCP transports, or use ctxflow-instrument (MCP servers and clients).
Spans of a stdio MCP server are lost Use ctxflow_otel.mcp.child_env(...) for its environment (MCP).
The tool call shows no input or result (MCP) With mcp 2.x, tool text is recorded on the MCP server, so the SDK must run in the server. A server without the SDK sends none. With mcp 1.x ctxflow records none: the text comes from the instrumentation of the framework that calls the tool (MCP).
No LlamaIndex spans (agent, LLM, tool, retriever) You did not start the LlamaIndex instrumentation: use ctxflow-instrument, or start it yourself after init(). [llamaindex] and llama-index-core must be installed, and llama_index must not be in OTEL_PYTHON_DISABLED_INSTRUMENTATIONS (LlamaIndex).
A WARNING says an instrumentor is installed but did not run OpenTelemetry skipped it because a dependency does not match. Fix the dependency, or silence it with OTEL_PYTHON_DISABLED_INSTRUMENTATIONS=<name> (Python SDK).
ctxflow-otel check prints FAIL: See the table on Verify your setup.

Up to about a minute after a turn ends. Lineage verdicts can change when ingestion spans arrive later: they are computed when you read.