# Logfire Python Observability SDK for LLM and Agent Tracing

> Logfire is Pydantic's observability SDK for Python applications, with first-class tracing for AI, LLM, and agent workloads. It wraps OpenTelemetry, ships with a hosted UI, and supports instrumenting popular Python frameworks without building a custom tracing stack from scratch.

- Skill: `agentskillexchange/logfire-python-observability-sdk-for-llm-and-agent-tracing` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/logfire-python-observability-sdk-for-llm-and-agent-tracing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/logfire-python-observability-sdk-for-llm-and-agent-tracing/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/logfire-python-observability-sdk-for-llm-and-agent-tracing

---


# Logfire Python Observability SDK for LLM and Agent Tracing

Logfire is Pydantic's observability SDK for Python applications, with first-class tracing for AI, LLM, and agent workloads. It wraps OpenTelemetry, ships with a hosted UI, and supports instrumenting popular Python frameworks without building a custom tracing stack from scratch.

## Prerequisites

python, pip, go, rust

## Installation

Use the upstream install or setup path that matches your environment:
- pip install logfire

Requirements and caveats from upstream:
- <a href="https://pypi.python.org/pypi/logfire"><img src="https://img.shields.io/pypi/v/logfire.svg" alt="pypi" /></a>
- **Python-centric Insights:** From rich display of Python objects, to event-loop telemetry, to profiling Python code and database queries, Logfire gives you unparalleled visibility into your Python application's behavior.
- **OpenTelemetry:** Logfire is an opinionated wrapper around OpenTelemetry, allowing you to leverage existing tooling, infrastructure, and instrumentation for many common Python packages, and enabling support for virtu...

Basic usage or getting-started notes:
- bash
- [_(learn more)_](https://pydantic.dev/docs/logfire/get-started/#sdk)
- ## Authenticate

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

## Documentation

- https://logfire.pydantic.dev/docs/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/logfire-python-observability-sdk-llm-agent-tracing/)

