Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

logfire-instrumentation

Skill by pydantic

Adds Pydantic Logfire observability to application code, including traces, logs, metrics, and AI agent spans. Built for developers instrumenting Python, JavaScript, TypeScript, or Rust services who want to confirm telemetry arrives.

  • Score 91
  • 4.6k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install logfire-instrumentation

Built from the published package, never by AI.

git clone --depth 1 https://github.com/pydantic/logfire /tmp/logfire && mkdir -p ~/.claude/skills && cp -r /tmp/logfire/logfire-sdk/logfire/.agents/skills/logfire-instrumentation ~/.claude/skills/logfire-instrumentation

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install logfire-instrumentation in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The logfire-instrumentation skill adds Pydantic Logfire observability to application code. It covers traces, logs, metrics, and AI agent spans, and names frameworks such as Pydantic AI, OpenAI Agents SDK, LangChain, and CrewAI. It selects one representative service, then applies the matching setup for Python, JavaScript or TypeScript, Rust, or another OpenTelemetry language. It does not instrument every detected language on the first pass.

Before reporting success, the skill runs the real application and queries the confirmed Logfire project with the logfire CLI to check that fresh data arrived. For agents, it also checks that the run appears on the project's Agents page. It is aimed at developers who want to add or configure Logfire, tracing, logging, or monitoring. Browser RUM and infrastructure monitoring are handled by separate skills.

Written from the project's SKILL.md and checked against it.

What it can do

  • Python instrumentationConfigures Logfire in a Python entrypoint and adds integrations only for libraries actually detected.
  • JavaScript and TypeScript setupApplies runtime profiles for Node, Next.js, React browser, edge runtimes, and the Vercel AI SDK.
  • Rust instrumentationAdds the logfire crate, configures it, and keeps the shutdown guard so spans flush on exit.
  • AI agent span setupUses first-party framework integrations or wraps agent runs in invoke_agent spans for the Agents page.
  • Telemetry verificationRuns the app and queries the exact project for fresh spans from the exercised operation.
  • Project and trace linksGenerates a live-view link for the verified project and a trace link when a valid trace ID exists.

What you need

  • A Logfire account and project
  • Python, Node.js, or Rust runtime for the matching service
  • The logfire CLI with a read-capable login for verification

Try asking

  • Add Logfire tracing to my FastAPI service and confirm data arrives.
  • Instrument my Pydantic AI agent with Logfire and check the Agents page.
  • Set up Logfire logging in my Node.js Express app.

Good to know

  • Verification needs a read-capable CLI login; without one, ingestion is reported as unverified.
  • Browser RUM, errors, and session replay are handled by a separate frontend skill.
  • Infrastructure-only monitoring with no app code changes is handled by a separate skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: logfire-sdk/logfire/.agents/skills/logfire-instrumentation/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • references/auth.md12 KB
  • references/coverage-map.md3 KB
  • references/javascript/ai-sdk.md5 KB
  • references/javascript/cloudflare-and-deno.md3 KB
Show all 16 files
  • references/javascript/frameworks.md2 KB
  • references/javascript/installation-and-env.md4 KB
  • references/javascript/nextjs.md3 KB
  • references/javascript/node-runtime.md4 KB
  • references/javascript/patterns.md5 KB
  • references/javascript/project-detection.md3 KB
  • references/javascript/react-browser.md903 B
  • references/javascript/verification-troubleshooting.md3 KB
  • references/python/integrations.md5 KB
  • references/python/logging-patterns.md4 KB
  • references/rust/patterns.md3 KB

Alternatives to logfire-instrumentation

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

logfire-instrumentation: common questions

Which languages does logfire-instrumentation support?

The skill supports Python, JavaScript and TypeScript, and Rust, and gives OTLP guidance for other OpenTelemetry languages.

Does the skill confirm that telemetry reached Logfire?

Yes. It runs the app, queries the exact project for fresh matching spans, and reports ingestion as unverified if no read-capable login is available.

Can it instrument AI agent frameworks?

Yes. It names frameworks such as Pydantic AI, OpenAI Agents SDK, LangChain, LangGraph, CrewAI, AutoGen, and Google ADK, and checks that agent runs appear on the Agents page.

How do I install logfire-instrumentation?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is logfire-instrumentation free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is logfire-instrumentation safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to logfire-instrumentation?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

logfire-instrumentation Install

Add to stack

Loading.