
Cloudflare Workers Observability
Handles the full observability stack for Cloudflare Workers: structured JSON logging with automatic PII redaction, Analytics Engine for custom metrics, and Tail Workers for real-time log aggregation. You get working patterns for request tracing with UUIDs, sampling high-volume logs to avoid cost explosions, and pushing errors to external services. The structured logging class is solid, includes actual redaction logic for tokens and passwords. Most useful when you're moving Workers to production and realize console.log isn't going to cut it anymore. The error prevention table is honest about real issues like log truncation at 128KB and missing Analytics Engine bindings.
- skills.sh installs
- 315
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill cloudflare-workers-observability --agent claude-codeInstalls into .claude/skills of the current project.
Files
Cloudflare Workers Observability
Production-grade observability for Cloudflare Workers: logging, metrics, tracing, and alerting.
Quick Start
// Structured logging with context
export default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
const requestId = crypto.randomUUID();
const logger = createLogger(requestId, env);
try {
logger.info('Request received', { method: request.method, url: request.url });
const result = await handleRequest(request, env);
logger.info('Request completed', { status: result.status });
return result;
} catch (error) {
logger.error('Request failed', { error: error.message, stack: error.stack });
throw error;
}
}
};
Sponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- DevOps & CI/CD, Data Science & ML, Debugging, Marketing & SEO, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- Cloudflare Workers Migration310
- Cloudflare Workers Multi Lang310
- Verification Before Completion310
- Nuxt Studio308
- Neon Vercel Postgres294
- Chrome Devtools288
- Database Sharding277
- Sveltia Cms277
- Google Gemini File Search272
- Tailwind V4 Shadcn8.2K
- Aceternity Ui1.6K
- Vitest Testing1.3K
- Motion1.1K
- Playwright1.1K
- Api Testing910
- Responsive Web Design703
- Zod663
- Nano Banana Prompts626
- Image Optimization604
- Rest Api Design600
- Mobile First Design598
- Web Performance Optimization576
- Inspira Ui572
- Api Authentication549