logfire
NewAdd Logfire observability to Python applications with auto-instrumentation for FastAPI, httpx, asyncpg, SQLAlchemy, and more
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
/plugin marketplace add <org/repo>Add the configuration to /plugin install logfire@<marketplace>
/pluginUse Cases
Usage Examples
/logfire instrument my_fastapi_app.py
Add Logfire observability to my Python project with auto-instrumentation for FastAPI and SQLAlchemy.
/logfire trace --service my-service --instrument httpx,asyncpg
Security Audits
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..