back to home

pydantic / logfire

AI observability platform for production LLM and agent systems.

View on GitHub
4,117 stars
218 forks
211 issues
PythonMakefileJavaScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing pydantic/logfire in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/pydantic/logfire)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Pydantic Logfire — Know more. Build faster. From the team behind Pydantic Validation, **Pydantic Logfire** is an observability platform built on the same belief as our open source library — that the most powerful tools can be easy to use. What sets Logfire apart: • **Simple and Powerful:** Logfire's dashboard is simple relative to the power it provides, ensuring your entire engineering team will actually use it. • **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. • **SQL:** Query your data using standard SQL — all the control and (for many) nothing new to learn. Using SQL also means you can query your data with existing BI tools and database querying libraries. • **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 virtually any language. We offer full support for all OpenTelemetry signals (traces, metrics and logs). • **Pydantic Integration:** Understand the data flowing through your Pydantic Validation models and get built-in analytics on validations. See the documentation for more information. **Feel free to report issues and ask any questions about Logfire in this repository!** This repo contains the Python SDK for and documentation; the server application for recording and displaying data is closed source. Using Logfire This is a very brief overview of how to use Logfire, the documentation has much more detail. Install _(learn more)_ Authenticate _(learn more)_ Manual tracing Here's a simple manual tracing (aka logging) example: _(learn more)_ Integration Or you can also avoid manual instrumentation and instead integrate with lots of popular packages, here's an example of integrating with FastAPI: _(learn more)_ Logfire gives you a view into how your code is running like this: Contributing We'd love anyone interested to contribute to the Logfire SDK and documentation, see the contributing guide. Reporting a Security Vulnerability See our security policy. Logfire Open-Source and Closed-Source Boundaries The Logfire SDKs (we also have them for TypeScript and Rust) are open source, and you can use them to export data to any OTel-compatible backend. The Logfire platform (the UI and backend) is closed source. You can self-host it by purchasing an enterprise license.