# 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.

- Skill: `agentskillexchange/trace-llm-and-agent-workflows-with-openllmetry` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/trace-llm-and-agent-workflows-with-openllmetry`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/trace-llm-and-agent-workflows-with-openllmetry/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/trace-llm-and-agent-workflows-with-openllmetry

---


# 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:
- <a href="https://traceloop.com/docs/openllmetry/getting-started-python"><strong>Get started »</strong></a>
- For a complete guide, go to our [docs](https://traceloop.com/docs/openllmetry/getting-started-python).
- 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()

- Source: https://github.com/traceloop/openllmetry
- Extracted from upstream docs: https://raw.githubusercontent.com/traceloop/openllmetry/HEAD/README.md

## Documentation

- https://traceloop.com/docs/openllmetry/getting-started-python

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/trace-llm-and-agent-workflows-with-openllmetry/)

