Overview
Which provider SDKs and frameworks Trodo captures on its own, which package to install for each, and what to do when yours isn't listed.
init registers an instrumentor for every supported provider and framework it finds installed. So for each one you use, install its instrumentor package next to the Trodo SDK, and its calls inside a wrapped run become llm spans with the model, messages, response, tokens and cost.
| Provider or framework | Node package | Python package |
|---|---|---|
| OpenAI | @opentelemetry/instrumentation-openai | opentelemetry-instrumentation-openai |
| Anthropic | @traceloop/instrumentation-anthropic | opentelemetry-instrumentation-anthropic |
| LangChain | @traceloop/instrumentation-langchain | opentelemetry-instrumentation-langchain |
| LlamaIndex | @traceloop/instrumentation-llamaindex | opentelemetry-instrumentation-llamaindex |
| Google Gemini | @traceloop/instrumentation-google-generativeai | opentelemetry-instrumentation-google-generativeai |
| Google Vertex AI | @traceloop/instrumentation-vertexai | opentelemetry-instrumentation-vertexai |
| AWS Bedrock | @traceloop/instrumentation-bedrock | opentelemetry-instrumentation-bedrock |
| Cohere | @traceloop/instrumentation-cohere | opentelemetry-instrumentation-cohere |
| Mistral | none: use trodo.llm | opentelemetry-instrumentation-mistralai |
| Haystack | n/a | opentelemetry-instrumentation-haystack |
| Vercel AI SDK | built in, nothing to install | n/a |
| HTTP calls | @opentelemetry/instrumentation-http | opentelemetry-instrumentation-requests |
Run once with debug: true in init to see which instrumentors loaded and which were skipped, and why.
Use one instrumentor per call
A framework built on a provider SDK, such as LangChain over OpenAI, can be captured by both instrumentors, which records each model call twice. Trodo turns off the LangChain and LlamaIndex instrumentors for you when a provider instrumentor is already active, and says so at startup. To choose the other way round, turn the provider's off:
trodo.init({ siteId, disableInstrumentations: ['openai'] });Don't wrap an auto-captured call in trodo.llm either; that records it twice too.
Node with ES modules
Under ES modules ("type": "module"), the raw OpenAI, Anthropic and Google SDKs are not captured, even with the node --import trodo-node/register preload. For those calls either:
- wrap them with
trodo.llm(...), which works under any module system, or - run that service as CommonJS, with
initin the first module it loads.
LangChain and the Vercel AI SDK are captured under ES modules. Python is not affected.
Not listed?
Wrap the call with trodo.llm, or record a response you already have with trackLlmCall. If your framework emits OpenTelemetry spans itself, those are recorded too (OpenTelemetry).