Add logging, metrics, or tracing
Adds logging, metrics, tracing, or alerting to codebases and identifies observability gaps.
/plugin marketplace add srstomp/pokayokay/plugin install srstomp-pokayokay@srstomp/pokayokay<observability-task> [--audit]Add observability for: $ARGUMENTS
Parse $ARGUMENTS to determine mode:
--audit flag present → Observability gap analysis mode (creates tasks for gaps)From $ARGUMENTS, determine:
Check existing setup:
For Logging:
For Metrics:
For Tracing:
For Alerting:
npx @stevestomp/ohno-cli create "Observability: [specific task]" -t chore
--audit flag)When --audit is specified, switch to observability gap analysis mode:
| Environment | Missing Observability | Priority |
|---|---|---|
| Production | Critical path without alerting | P1 |
| Production | No error tracking on API | P1 |
| Production | Missing latency metrics | P2 |
| Staging/Dev | Missing traces | P3 |
| Any | No structured logging | P2 |
Automatically create ohno tasks using MCP tools for identified gaps:
create_task({
title: "Observability: [what needs coverage]",
description: "[Gap description]\n\nComponent: [name]\nPillar: [logs/metrics/traces/alerts]\nEnvironment: [prod/staging/dev]\nImpact: [what we can't see without this]",
task_type: "chore",
estimate_hours: [1-4 based on scope]
})
Example task creation:
create_task("Observability: Add alerting for payment API errors", type: chore) P1create_task("Observability: Add OpenTelemetry tracing to order service", type: chore) P2create_task("Observability: Add connection pool and query metrics", type: chore) P2Observability Audit Results:
| Pillar | Coverage | Gaps |
|--------|----------|------|
| Logs | [X]% | [N] components |
| Metrics | [X]% | [N] components |
| Traces | [X]% | [N] components |
| Alerts | [X]% | [N] critical paths |
Created [N] observability tasks:
- [task-id]: Observability: [name] (P1/P2/P3)
- ...
Critical blind spots: [list of most important gaps]
| Pillar | Purpose | Tools |
|---|---|---|
| Logs | Debug, audit | Pino, Winston, Bunyan |
| Metrics | Monitor, alert | Prometheus, StatsD, DataDog |
| Traces | Distributed debug | OpenTelemetry, Jaeger |
/pokayokay:cicd - Pipeline monitoring/pokayokay:work - Implement observability/pokayokay:security - Security loggingWhen observability involves:
api-design skilldatabase-design skillci-cd-expert skill