By MagnivOrg
Automatically trace Claude Code conversations to PromptLayer. Captures user messages, assistant responses, and tool calls as structured spans.
See every Claude Code session as structured traces in PromptLayer — user messages, assistant responses, tool calls, and token usage, all captured automatically.
claude plugin marketplace add MagnivOrg/promptlayer-claude-plugins
claude plugin install trace@promptlayer-claude-plugins
Run the setup script from the project where you want tracing enabled:
$HOME/.claude/plugins/marketplaces/promptlayer-claude-plugins/plugins/trace/setup.sh
You will be prompted for your PromptLayer API key. You can find or create one at dashboard.promptlayer.com.
claudeThe plugin hooks into Claude Code's lifecycle and emits OTLP/HTTP JSON spans for:
python3 available in your shellThe setup script writes ~/.claude/settings.json with:
| Variable | Purpose | Default |
|---|---|---|
TRACE_TO_PROMPTLAYER | Enable/disable tracing | true |
PROMPTLAYER_API_KEY | Your API key | (required) |
PROMPTLAYER_OTLP_ENDPOINT | OTLP ingestion endpoint | https://api.promptlayer.com/v1/traces |
PROMPTLAYER_CC_DEBUG | Enable debug logging | false |
Because this file lives in your home directory, your API key stays out of version control and tracing is enabled across all projects.
This plugin is OpenTelemetry (OTLP/HTTP JSON) compatible:
ExportTraceServiceRequest payloads directly over OTLP/HTTP JSON using the Python standard library; no proprietary client libraries requiredInstall Python dev tooling with:
uv sync --extra dev
make dev # Symlink repo as marketplace source, install plugin, run setup
make uninstall # Remove local install and cleanup artifacts
make test # Validate manifests + lint + pytest unit tests + fixture replay
make smoke # E2E smoke test (requires ANTHROPIC_API_KEY)
Matches all tools
Hooks run on every tool call, not just specific ones
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub magnivorg/promptlayer-claude-pluginsTraces Claude Code conversations to LangSmith, including subagent and tool executions
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool calls as hierarchical traces.
Automatic tracing of Claude Code sessions to Arize AX or Phoenix with OpenInference spans. Supports 9 hooks for comprehensive observability.
LLM observability tooling for agent development and Claude Code
OpenLit telemetry for Claude Code: sessions, tool calls, edit decisions, and cost rollups.
OTel + Hooks analytics for Claude Code. Run /init-claudalytics to configure telemetry and hooks capture for this project.