secondsky avatar

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-code

Installs 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
1guia-matthieu avatarcompetitor-monitorguia-matthieu/clawfu-skillsMonitor competitor websites for changes. Use when: tracking competitor pricing changes; monitoring new features; watching for content updates; alerting on websi290skills.sh installs
2patricio0312rev avatarobservability-setuppatricio0312rev/skillsImplements comprehensive observability with OpenTelemetry tracing, Prometheus metrics, and structured logging. Includes instrumentation plans, sample dashboards285skills.sh installs
3rohitg00 avatardevops-automationrohitg00/awesome-claude-code-toolkitCI/CD pipeline design with GitHub Actions, Docker, Kubernetes, Helm, and GitOps patterns269skills.sh installs
4pedronauck avatardevops-engineerpedronauck/skillsCreates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automa264skills.sh installs
5patricio0312rev avatarkubernetes-manifest-generatorpatricio0312rev/skillsGenerates Kubernetes manifests including Deployments, Services, ConfigMaps, Secrets, Ingress, and HPA with best practices. Use when users request "Kubernetes se258skills.sh installs
6borghei avatarsenior-devopsborghei/claude-skillsDevOps for CI/CD, containers, Kubernetes, and Terraform. Use when building pipelines, containerizing apps, managing clusters, provisioning cloud infra, deployin208skills.sh installs