Anthropic Claude Observability
Instruments Anthropic API calls to monitor token usage, latency, costs, and error rates in production environments.
This skill provides a robust framework for tracking and monitoring Claude API integrations within your applications. It includes a production-ready logging wrapper for the Anthropic SDK that automatically captures metadata for every request, including input/output tokens, cache hits, p95 latency, and estimated costs. Designed for developers running AI workloads at scale, it provides clear patterns for error handling (including 429 and 529 status codes) and sets specific alert thresholds to help maintain system reliability and budget control.
Key Features
01Pre-defined alert thresholds for error rates, rate limits, and budget overages
02Real-time token usage and cost estimation logic for all Claude models
03Performance metrics tracking including p95 latency and duration
040 GitHub stars
05Standardized logging wrapper for the Anthropic messages.create SDK
06Structured JSON logging compatible with major observability platforms
Use Cases
01Debugging API rate limits and model-specific errors during high-traffic periods
02Monitoring production Claude integrations for performance and cost optimization
03Setting up comprehensive dashboards for LLM reliability and usage metrics