backend-observability

Solid

Implement correlated errors, traces, and structured logs with PII redaction. Use when "add logging", "instrument this", "correlate error to trace", or wiring Sentry/Langfuse. Plan-only audit → plan-error-handling. Sentry triage → debug-sentry-monitor.

Web & Frontend 9 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 82/100

Stars 20%
33
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Observability Instrumentation **Degree of freedom: MIXED.** What to wrap and alert on `[HIGH freedom]`; correlation ids, PII redaction, and the DoD `[LOW freedom — run exactly]`. ## How to reason 1. **Observe** — which ids, logs, spans, and PII already exist 2. **Interpret** — can you pivot error ↔ trace ↔ log ↔ user from any one? 3. **Classify** — add-correlation / convert-console / redact / wrap-span / alert 4. **Severity** — uncorrelated prod 500 outranks a missing debug field ## Worked example > **Observe:** checkout 500 in Sentry has no request_id; pino logs the cart id; no LLM (Langfuse unused). > **Interpret:** cannot pivot error → logs; webhook still `console.log`s. > **Classify:** ALS request_id on logs + `Sentry.setTag`; convert console to pino; redact `Authorization`. > **Verify:** one id on the Sentry event and the log line; `beforeSend` strips the header. ## Self-critique before reporting - **Correlated** — same request/trace id on the log, Sentry, and Langfuse - **Redacted** — deny-list at the logger + `beforeSend`, not per-call hope - **Leveled** — no `console.log` in prod; handled paths are not `error` - **Right owner** — plan-only audit → `plan-error-handling`; investigate a Sentry issue → `debug-sentry-monitor` > The build-time counterpart to your monitoring stack. The Sentry plugin installs the SDK; `debug-sentry-monitor` triages after the fact; `audit-langfuse-llm` audits LLM traces. This skill is about instrumenting **correctly while you build**...

Details

Author
kensaurus
Repository
kensaurus/cursor-kenji
Created
7 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

backend-observability

Instrument a backend service so failures are diagnosable in production — structured logs, RED/USE metrics, and distributed tracing wired through one correlation id. Use when a service has no observability, when incidents take too long to diagnose, or as the observability step of api-service-scaffold. Vendor-neutral (OpenTelemetry), with concrete cardinality and PII guardrails.

0 Updated 2 months ago
omonuj
Code & Development Listed

craft-observability

The Craftsman standard for production observability — error tracking (Sentry), metrics & dashboards (Grafana), structured logging, tracing, SLOs, and alerting. Use this WHENEVER the work touches observability: adding or reviewing Sentry, wiring Grafana/Prometheus/OpenTelemetry, setting up structured logs, defining alerts or SLOs, instrumenting a service, or debugging "we have no visibility into X". Trigger even when the user only says "add monitoring", "why can't we see errors", "set up dashboards", or "make this observable" without naming a tool. Deploy, runtime, and CI production-readiness → craft-infra; whole-project readiness → craft-audit.

1 Updated today
atifgul99
Code & Development Listed

craft-observability

The Craftsman standard for production observability — error tracking (Sentry), metrics & dashboards (Grafana), structured logging, tracing, SLOs, and alerting. Use this WHENEVER the work touches observability: adding or reviewing Sentry, wiring Grafana/Prometheus/OpenTelemetry, setting up structured logs, defining alerts or SLOs, instrumenting a service, or debugging "we have no visibility into X". Trigger even when the user only says "add monitoring", "why can't we see errors", "set up dashboards", or "make this observable" without naming a tool. Deploy, runtime, and CI production-readiness → craft-infra; whole-project readiness → craft-audit.

1 Updated today
gul-labs