BeClaude

logfire

New
80Official PluginGeneralby Pydantic

Add Logfire observability to Python applications with auto-instrumentation for FastAPI, httpx, asyncpg, SQLAlchemy, and more

Python3 forksUpdated 6/15/2026First seen 5/22/2026

Summary

Logfire is an observability plugin that automatically instruments Python applications with minimal code.

  • It provides real-time monitoring for FastAPI, httpx, asyncpg, SQLAlchemy, and other popular libraries, helping developers debug performance issues and track errors in production.

Install & Usage

1
Add a marketplace
/plugin marketplace add <org/repo>
2
Install the plugin

Add the configuration to /plugin install logfire@<marketplace>

3
Manage with /plugin
/plugin

Use Cases

Automatically instrument a FastAPI web service to monitor request latency and error rates.
Trace HTTP calls made with httpx to debug slow external API dependencies.
Monitor database queries via SQLAlchemy or asyncpg to identify slow queries and connection issues.
Add structured logging to a Python script without modifying existing code.
Set up real-time dashboards for a microservices architecture using Logfire's auto-instrumentation.
Correlate logs and traces across multiple services to diagnose distributed system failures.

Usage Examples

1

/logfire instrument my_fastapi_app.py

2

Add Logfire observability to my Python project with auto-instrumentation for FastAPI and SQLAlchemy.

3

/logfire trace --service my-service --instrument httpx,asyncpg

View source on GitHub
apipython

Security Audits

LicenseUnknownSourcePassRepositoryPass

Frequently Asked Questions

What is logfire?

Logfire is an observability plugin that automatically instruments Python applications with minimal code. It provides real-time monitoring for FastAPI, httpx, asyncpg, SQLAlchemy, and other popular libraries, helping developers debug performance issues and track errors in production.

How to install logfire?

To install logfire: add a marketplace (/plugin marketplace add <org/repo>), then add the config to /plugin install logfire@<marketplace>. Finally, /plugin in Claude Code.

What is logfire best for?

logfire is a plugin categorized under General. It is designed for: api, python. Created by Pydantic.

What can I use logfire for?

logfire is useful for: Automatically instrument a FastAPI web service to monitor request latency and error rates.; Trace HTTP calls made with httpx to debug slow external API dependencies.; Monitor database queries via SQLAlchemy or asyncpg to identify slow queries and connection issues.; Add structured logging to a Python script without modifying existing code.; Set up real-time dashboards for a microservices architecture using Logfire's auto-instrumentation.; Correlate logs and traces across multiple services to diagnose distributed system failures..