con un clic
request-tracing
Instrument HTTP/gRPC endpoints with distributed tracing and RED metrics
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Instrument HTTP/gRPC endpoints with distributed tracing and RED metrics
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Track cache hit rates, latency, and detect cache-related issues
Instrument database queries, connection pools, and detect N+1 queries
Capture errors with rich context for debugging and alerting
Implement liveness, readiness, and dependency health checks
Plan backend observability using RED + USE + 4 Golden Signals + JTBD
Monitor message queues, job processing, and detect backpressure
| name | request-tracing |
| description | Instrument HTTP/gRPC endpoints with distributed tracing and RED metrics |
| triggers | ["trace HTTP requests","instrument endpoints","distributed tracing","trace context propagation","gRPC tracing"] |
| priority | 1 |
Every request needs: a span, RED metrics, and trace context propagation.
| Attribute | Example | Note |
|---|---|---|
http.method | GET, POST | Required |
http.route | /api/orders/:id | Template, not actual path! |
http.status_code | 200, 500 | Required |
user.tier | premium | Recommended (not user_id!) |
Rate: http.requests.count{method, route, status}
Errors: http.requests.errors{method, route, error_type}
Duration: http.request.duration{method, route} (histogram p50/p95/p99)
Request → Extract trace context (W3C traceparent)
→ Start span (method + route)
→ Start timer
→ Call handler
→ Set status_code
→ Record duration histogram
→ If 4xx/5xx: increment error counter
→ End span
→ Inject trace context into response
Critical: Always propagate to downstream services:
// Outgoing request
propagator.inject(ctx, headers)
/api/orders/12345 creates millions of unique valueserror_typereferences/methodology/red-methodology.mdreferences/platforms/{platform}/http.md