Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Comprehensive Cloudflare platform skill covering Workers, D1, R2, KV, AI, Durable Objects, and security.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/observability/README.md
1# Cloudflare Observability Skill Reference23**Purpose**: Comprehensive guidance for implementing observability in Cloudflare Workers, covering traces, logs, metrics, and analytics.45**Scope**: Cloudflare Observability features ONLY - Workers Logs, Traces, Analytics Engine, Logpush, Metrics & Analytics, and OpenTelemetry exports.67---89## Decision Tree: Which File to Load?1011Use this to route to the correct file without loading all content:1213```14├─ "How do I enable/configure X?" → configuration.md15├─ "What's the API/method/binding for X?" → api.md16├─ "How do I implement X pattern?" → patterns.md17│ ├─ Usage tracking/billing → patterns.md18│ ├─ Error tracking → patterns.md19│ ├─ Performance monitoring → patterns.md20│ ├─ Multi-tenant tracking → patterns.md21│ ├─ Tail Worker filtering → patterns.md22│ └─ OpenTelemetry export → patterns.md23└─ "Why isn't X working?" / "Limits?" → gotchas.md24```2526## Reading Order2728Load files in this order based on task:2930| Task Type | Load Order | Reason |31|-----------|------------|--------|32| **Initial setup** | configuration.md → gotchas.md | Setup first, avoid pitfalls |33| **Implement feature** | patterns.md → api.md → gotchas.md | Pattern → API details → edge cases |34| **Debug issue** | gotchas.md → configuration.md | Common issues first |35| **Query data** | api.md → patterns.md | API syntax → query examples |3637## Product Overview3839### Workers Logs40- **What:** Console output from Workers (console.log/warn/error)41- **Access:** Dashboard (Real-time Logs), Logpush, Tail Workers42- **Cost:** Free (included with all Workers)43- **Retention:** Real-time only (no historical storage in dashboard)4445### Workers Traces46- **What:** Execution traces with timing, CPU usage, outcome47- **Access:** Dashboard (Workers Analytics → Traces), Logpush48- **Cost:** $0.10/1M spans (GA pricing starts March 1, 2026), 10M free/month49- **Retention:** 14 days included5051### Analytics Engine52- **What:** High-cardinality event storage and SQL queries53- **Access:** SQL API, Dashboard (Analytics → Analytics Engine)54- **Cost:** $0.25/1M writes beyond 10M free/month55- **Retention:** 90 days (configurable up to 1 year)5657### Tail Workers58- **What:** Workers that receive logs/traces from other Workers59- **Use Cases:** Log filtering, transformation, external export60- **Cost:** Standard Workers pricing6162### Logpush63- **What:** Stream logs to external storage (S3, R2, Datadog, etc.)64- **Access:** Dashboard, API65- **Cost:** Requires Business/Enterprise plan6667## Pricing Summary (2026)6869| Feature | Free Tier | Cost Beyond Free Tier | Plan Requirement |70|---------|-----------|----------------------|------------------|71| Workers Logs | Unlimited | Free | Any |72| Workers Traces | 10M spans/month | $0.10/1M spans | Paid Workers (GA: March 1, 2026) |73| Analytics Engine | 10M writes/month | $0.25/1M writes | Paid Workers |74| Logpush | N/A | Included in plan | Business/Enterprise |7576## In This Reference7778- **[configuration.md](configuration.md)** - Setup, deployment, configuration (Logs, Traces, Analytics Engine, Tail Workers, Logpush)79- **[api.md](api.md)** - API endpoints, methods, interfaces (GraphQL, SQL, bindings, types)80- **[patterns.md](patterns.md)** - Common patterns, use cases, examples (billing, monitoring, error tracking, exports)81- **[gotchas.md](gotchas.md)** - Troubleshooting, best practices, limitations (common errors, performance gotchas, pricing)8283## See Also8485- [Cloudflare Workers Docs](https://developers.cloudflare.com/workers/)86- [Analytics Engine Docs](https://developers.cloudflare.com/analytics/analytics-engine/)87- [Workers Traces Docs](https://developers.cloudflare.com/workers/observability/traces/)88- [GraphQL Analytics API Reference](../graphql-api/) - Query Workers metrics, HTTP analytics, and 70+ other datasets via GraphQL89