Overview

Auto-instrumentation captures supported frameworks with no extra code. Install the instrumentor and wrap your agent.

Trodo auto-instruments popular LLM frameworks. Install the instrumentor for your stack, wrap your agent, and every call inside the wrap becomes a span with its model, tokens, prompt, and completion. No per-call code.

How it works

trodo.init() turns on auto-instrumentation by default. It registers every OpenTelemetry instrumentor you have installed, so the only per-framework setup is installing its package alongside the SDK you already use.

Supported frameworks

FrameworkNode packagePython package
OpenAI@opentelemetry/instrumentation-openaiopentelemetry-instrumentation-openai
Anthropic@traceloop/instrumentation-anthropicopentelemetry-instrumentation-anthropic
LangChain@traceloop/instrumentation-langchainopentelemetry-instrumentation-langchain
LlamaIndex@traceloop/instrumentation-llamaindexopentelemetry-instrumentation-llamaindex
Google@traceloop/instrumentation-google-generativeaiopentelemetry-instrumentation-google-generativeai
Bedrock@traceloop/instrumentation-bedrockopentelemetry-instrumentation-bedrock
Cohere@traceloop/instrumentation-cohereopentelemetry-instrumentation-cohere
Mistraluse the llm helperopentelemetry-instrumentation-mistralai
Vercel AI SDKbuilt in (v7 via Trodo's telemetry integration, registered for you)n/a
Generic HTTP@opentelemetry/instrumentation-httpopentelemetry-instrumentation-requests

Most Node LLM instrumentors are published under the @traceloop/instrumentation-* scope (only OpenAI and HTTP live under @opentelemetry/*); trodo-node resolves either name at runtime, but npm install needs the real one.

Don't see your framework? Use manual spans or raw HTTP.

Tokens and cost

Tokens come from each provider's response; cost is computed server-side from (provider, model). See Pricing to add custom model prices.

On this page