Claude Tools / Plugins / logfire-session-capture
Plugins · pydantic/claude-code-logfire-plugin
logfire-session-capture
Captures Claude Code sessions and exports pydantic-ai compatible OTel traces to Pydantic Logfire, with local JSONL fallback.
CLEARED_STATICclaude-onlyv0.4.6
Pipeline results
Coverage
CLEARED_STATIC
Tests run
7 / 8
Portability
Claude-only
Type
Plugins
Tests & results
What the pipeline checked
Coverage
Not assessed
- behavioural execution not run
- egress patterns logged (FLAG-INFO): 2 lexical match(es)
README
From the repository
# Logfire plugin for Claude Code A [Claude Code](https://docs.anthropic.com/en/docs/claude-code) plugin that sends OpenTelemetry traces to [Pydantic Logfire](https://logfire.pydantic.dev), giving you full observability into your Claude Code sessions. Each session becomes a trace with child spans per LLM API call, with full token usage, cost tracking, and conversation history visible in Logfire. ## Installation ### System requirements - [Claude Code](https://docs.anthropic.com/en/docs/claude-code) installed - A [Logfire](https://logfire.pydantic.dev) project with a write token - `python3` (3.7+) — pre-installed on macOS and most Linux distributions; uses stdlib only (no pip dependencies) ### Install the plugin From within Claude Code, run: ``` /plugin marketplace add pydantic/claude-code-logfire-plugin /plugin install logfire-session-capture@pydantic-claude-code-logfire-plugin ``` ### Update the plugin ``` /plugin update logfire-session-capture@pydantic-claude-code-logfire-plugin ``` ### Set your Logfire token ```bash export LOGFIRE_TOKEN="your-logfire-write-token" ``` Add this to your shell profile (`~/.zshrc`, `~/.bashrc`, etc.) so it persists across sessions. For …