> ## Documentation Index
> Fetch the complete documentation index at: https://learn.kubit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Checklist: is my data flowing?

> Step-by-step checks when traces don't show up in Kubit Activity: Pipeline status, API key, connection, span filters and the extraction mapping.

Use this checklist when traces don't show up in **Agent** > **Activity**, or show up without the detail you expect. It works for all three ways to integrate: the agent plugin, the Kubit SDK and manual OpenTelemetry. Work through the checks in order. Each one rules out a cause before the next.

## Check 1: spans reach Kubit

Open **Data** > **Pipeline**. The **Streaming** section shows what the workspace has received.

![Pipeline page with the setup steps Config your project and Raw events received checked and First enrichment run pending, above the Streaming section of raw events. Its cards read Latest event received at, Total events · 24H and Events this hour, above a bar chart of the last 24 hours.](https://mintcdn.com/kubit/1Fb-SAr-OHTiP1JA/images/agent-analytics/pipeline.png?fit=max\&auto=format\&n=1Fb-SAr-OHTiP1JA\&q=85\&s=27a5e6428cc7eb027c075bb0135b0556)

| **What you see** | **What it means** | **Next** |
| - | - | - |
| **Latest event received at** shows a time after your test span | Spans reach Kubit | Go to [Check 4](#check-4-traces-show-up-in-activity) |
| `Waiting for first event to arrive`, or an older time | No new span arrived | Go to [Check 2](#check-2-key-and-connection) |
| `This workspace is paused. New events are not being ingested.` | The pipeline is paused | Click **Resume Pipeline** on the Pipeline page, or ask a workspace admin |
| **Data** has no **Pipeline** | The workspace isn't an Agent workspace | Create one with **Origin** set to **Agent**. See the [Quickstart](https://learn.kubit.ai/agent-analytics/get-started/quickstart.md#create-an-agent-workspace). |

## Check 2: key and connection

A test request from outside your app takes your code out of the picture. Run the `curl` request from [Manual OpenTelemetry](https://learn.kubit.ai/agent-analytics/cookbook/manual-otel.md#check-the-connection-with-curl) with your key. It works whichever approach you use.

| **Result** | **Cause** | **Fix** |
| - | - | - |
| `HTTP 200` | Key and network work | The problem is in your app. Go to [Check 3](#check-3-your-app-sends-spans). |
| `HTTP 401` with `Missing x-api-key header` | The header isn't set | Export `KUBIT_API_KEY` in the shell that runs `curl` |
| `HTTP 401` with another message | The key is wrong, revoked or from another environment | Generate a new key in **Settings** > **Workspace** > **API Keys** |
| `curl: (6) Could not resolve host` or a timeout | Outbound HTTPS is blocked | Allow `otel.kubit.ai` on port 443 in your egress rules |

Also check that the key belongs to the workspace you're looking at. Each key works for one workspace only.

With the Kubit SDK, a failed export logs this line, for a bad key and for a network failure alike:

```text Output theme={null}
[kubit-otel warn] KubitExporter export failed  span_count=1
```

To see whether a batch got through, run with `KUBIT_OTEL_LOG_LEVEL=debug`. Each accepted batch logs `[kubit-otel debug] Exported batch to kubit  span_count=<n>`.

## Check 3: your app sends spans

`curl` works, but your app's spans don't arrive.

| **Cause** | **How to tell** | **Fix** |
| - | - | - |
| `KUBIT_API_KEY` isn't set in the running process | `python -c "import os; print(bool(os.environ.get('KUBIT_API_KEY')))"` prints `False` | Export it, or load `.env` before the Kubit import |
| The Kubit setup is imported after the LLM client is created | The Kubit import isn't the first line of the entrypoint | Move it to the first line |
| A second tracer provider was registered | Spans reach your other backend but not Kubit, or the reverse | Add Kubit to your existing provider. See [Kubit SDK for Python](https://learn.kubit.ai/agent-analytics/integrate/sdk-python.md#choose-configure-or-attach), [Kubit SDK for Node](https://learn.kubit.ai/agent-analytics/integrate/sdk-node.md#choose-configure-or-kubitspanprocessor) or [Manual OpenTelemetry](https://learn.kubit.ai/agent-analytics/cookbook/manual-otel.md). |
| No GenAI instrumentor | Only your own manual spans arrive | Add the instrumentor for your LLM client |
| The process exits before the batch flushes | Missing spans come from scripts, cron jobs or serverless functions | Call `force_flush()` (Python) or `forceFlush()` (Node) on the tracer provider before exit |
| The Kubit SDK filter dropped the span | Debug logs show `Dropped span due to shouldExportSpan filter` | Add a `gen_ai.*` attribute, or extend `should_export_span` or `shouldExportSpan` |
| Next.js parents AI spans on an HTTP route span | Next.js app with the Vercel AI SDK | Wrap AI SDK calls in `context.with(ROOT_CONTEXT, () => …)` |
| OpenTelemetry JS SDK `^1.x` | `npm ls @opentelemetry/sdk-trace-base` shows `1.x` | Upgrade to `^2.0.0` |

## Check 4: traces show up in Activity

Spans reach Kubit, so look for them in **Agent** > **Activity**. Activity doesn't load on its own: keep **Subject** on **Trace**, set **Time Range** and click **Execute**.

| **What you see** | **Cause** | **Fix** |
| - | - | - |
| `Ready to load traces` | Activity hasn't run yet | Click **Execute** |
| `No traces found` | The time range doesn't cover your spans | Set **Time Range** to **Last 7 days** and click **Execute** again |
| Your newest spans are missing | The list shows results from the last run | Click **Refresh** in the header |
| Spans arrive in Pipeline but never in Activity | The workspace filter or sampling dropped them | Check the rules in **Data** > **Collection** > **Filtering** and **Sampling** |

## Check 5: traces show up, but detail is missing

Open a trace in Activity and compare it with the extraction mapping in **Data** > **Extraction**. Click **Run preview** there to see your recent spans next to each column.

| **Symptom** | **Cause** | **Fix** |
| - | - | - |
| The trace header has no **User** or **Session** | The spans carry no user or session ID, or use a key the mapping doesn't read | Set `user.id` and `session.id` on the root span, or edit the **USER\_ID** and **SESSION\_ID** source paths |
| Model, tokens or input and output are empty | The spans use another framework's keys, such as OpenInference `llm.*` or Vercel AI `ai.*`, and the workspace uses `default-otel` | Click **Change template** and apply `default-agent` |
| A column is empty for new spans after you edited it | The column is marked **Replay** | New spans get the new value. Run a replay from **Data** > **Pipeline** to fill older ones. |
| An attribute you need isn't a field | The mapping has no column for it | Click **Add custom field** and set its **Source paths** |
| No Polaris labels on LLM spans | Message content isn't captured | `export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true` |

## Still stuck

Send your workspace name, the output of the `curl` check and the time you ran it to [support@kubit.co](mailto:support@kubit.co).

## Related

* [Quickstart](https://learn.kubit.ai/agent-analytics/get-started/quickstart.md): the three ways to integrate, and how to check the mapping.
* [Manual OpenTelemetry](https://learn.kubit.ai/agent-analytics/cookbook/manual-otel.md): connection details and the `curl` check.
* [Agent plugin](https://learn.kubit.ai/agent-analytics/integrate/agent-plugin.md): let Claude Code or Cursor wire Kubit in.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.