Trace LLM and agent workflows with OpenLLMetry
Add OpenTelemetry-based instrumentation to LLM and agent code so operators can inspect prompts, tool calls, latency, errors, and provider behavior in their existing observability stack.
Prerequisites
Python, OpenLLMetry or Traceloop SDK, OpenTelemetry-compatible collector or backend
Installation
Use the upstream install or setup path that matches your environment:
- pip install traceloop-sdk
Requirements and caveats from upstream:
- Get started »
- For a complete guide, go to our docs.
- python
Basic usage or getting-started notes:
Then, to start instrumenting your code, just add this line to your code:
from traceloop.sdk import Traceloop
Traceloop.init()
Extracted from upstream docs: https://raw.githubusercontent.com/traceloop/openllmetry/HEAD/README.md