Structured logging, RED metrics, and OpenTelemetry tracing. Use when adding telemetry, or shipping anything that runs in production. Instrument as you build — not after incidents.
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Structured logging, RED metrics, and OpenTelemetry tracing. Use when adding telemetry, or shipping anything that runs in production. Instrument as you build — not after incidents.
Observability and Instrumentation
Overview
Instrument production code so that on-call engineers (including future AI agents) can answer: Is it working? What's broken? Why? Logs answer why. Metrics answer that something is wrong. Traces answer where. Build all three in as you go — retrofitting observability after an incident is painful and late.
When to Use
Adding a new API endpoint or background job
Shipping a feature that touches external services (GitHub API, Gemini)
Modifying error handling or retry logic
Any change to Cloud Run that affects request processing
The Three Pillars
1. Structured Logging
Every log line should be machine-parseable JSON, not a free-form string.