Skip to main content

Logfire integration for AI agents

Query traces, logs, and metrics in Pydantic Logfire

Logfire is a Sim integration in the Observability category. Sim is the AI workspace where teams build and deploy AI agents. Sim's Logfire integration provides 4 tools that AI agents can use inside Sim's visual workflow builder. Logfire connects with an API key. Free to start at sim.ai.

View docs

Last updated

What Sim agents can do with Logfire

Run SQL over your observability data, search spans and logs with structured filters, pull an entire trace by ID, and confirm which project a read token targets.

Category
Observability
Authentication
API key
Tools
4
Triggers
0
Documentation
Logfire docs

How to automate Logfire with Sim

  1. Create a free account

    Sign up at sim.ai in seconds. No credit card required. Your workspace is ready immediately.

  2. Add a Logfire block

    Open your workspace, drag a Logfire block onto the workflow builder, and paste in your Logfire API key.

  3. Configure, connect, and run

    Pick the tool you need, wire in an AI agent for reasoning or data transformation, and run. Your Logfire automation is live.

Agent templates

Ready-to-use templates featuring Logfire. Click any to build it instantly.

Logfire tools

4 Logfire tools available to Sim agents.

Search Records

Search Logfire spans and logs using structured filters for message text, service, span name, severity, environment, and exceptions. Returns the most recent matches first without writing SQL.

Run SQL Query

Run a read-only SQL query against Logfire traces, logs, and metrics. Reads the records and metrics tables using PostgreSQL-compatible syntax.

Get Trace

Fetch every span and log belonging to a Logfire trace, ordered from earliest to latest, so a single request can be reconstructed end to end.

Get Token Info

Resolve which Logfire organization and project a read token belongs to. Useful for confirming a credential targets the expected project before querying it.

Frequently asked questions

Sim's Logfire integration adds 4 tools to the AI agents you build in Sim's visual workflow builder. Query traces, logs, and metrics in Pydantic Logfire.

Every agent your company runs. All in one place.