TCC is not a general-purpose OpenTelemetry backend. The OTLP endpoint accepts trace payloads produced by supported TCC AI framework integrations. It does not infer agent runs from arbitrary application spans.
OTLP compatibility
OTLP over gRPC, metrics, and logs are not currently supported.
How TCC consumes OTLP
- A supported framework instrumentor creates OpenTelemetry spans for the agent run, model calls, and tool calls.
- The TCC integration adds a stable
tcc.runIdand preserves the framework attributes needed to interpret the trace. - An OpenTelemetry exporter sends the trace directly to
https://api.thecontext.company/v1/tracesas OTLP/HTTP JSON or protobuf. - TCC converts the recognized spans into runs, steps, and tool calls for analysis in the dashboard.
Supported OTLP integrations
Vercel AI SDK
The Node.js and Next.js integration registers OpenTelemetry instrumentation and exports AI SDK agent, model, and tool spans through OTLP/HTTP.
LangChain and LangGraph
The Python integration instruments LangChain and LangGraph, attaches run context, and exports the resulting traces through OTLP/HTTP.
Agno
The Python integration uses OpenInference instrumentation and exports Agno agent, model, and tool spans through OTLP/HTTP.
Authentication
Create an ingestion API key in Settings and provide it to the integration throughTCC_API_KEY:
.env
Required run context
TCC groups model and tool spans into an agent run usingtcc.runId. Supported integrations generate this value automatically. You can provide your own UUID when you need to correlate a run with feedback, deep links, or application data.
Additional reserved attributes can associate a run with a session, agent, user, or organization:
Verify ingestion
- Register the TCC integration before initializing the AI framework.
- Execute one complete agent request.
- Flush the integration before a short-lived process exits.
- Open the TCC dashboard and confirm that the run contains its model steps and tool calls.
tcc.runId. This makes it easier to separate export problems from sampling, batching, or unrelated application traffic.
Troubleshooting
The exporter receives 401 Unauthorized
Confirm that the request contains Authorization: Bearer <TCC_API_KEY> and that the value is an ingestion key. Read-only API keys cannot ingest traces.
The exporter reports an ingestion error
Check all of the following:- The request is sent to
https://api.thecontext.company/v1/traces. - The integration sends an OTLP trace export using JSON or protobuf over HTTP.
- You are using a supported TCC integration rather than an unmodified generic exporter.
- The integration is registered before the AI framework initializes.
- Span names, instrumentation scope names, parent relationships, and framework attributes have not been rewritten.
No run appears in the dashboard
Confirm that sampling retains the spans, a batch processor is flushed before shutdown, and the root run span includes a validtcc.runId. Enabling debug logging in the relevant framework integration can confirm whether the exporter delivered the trace.
