Skip to content
Back to skills

Common Observability

ASecurity

- **Plain-text production logging:** Avoid ad hoc strings and `console.log`. They are difficult to query and correlate. Emit JSON through a structured logger. - **Broken correlation:** Do not drop `X-Request-Id` or W3C `traceparent` at an ingress, async job, queue, or outbound HTTP boundary. Carry correlation through async context and propagate it downstream. - **No distributed tracing:** Logs alone cannot reliably explain latency across services. Instrument service boundaries with OpenTeleme...

  • 584 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
development

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-observability --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Observability?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Observability
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-common-observability-6bcaa545/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-observability-6bcaa545)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Common observability anti-patterns to avoid

- **Plain-text production logging:** Avoid ad hoc strings and `console.log`. They are difficult to query and correlate. Emit JSON through a structured logger.
- **Broken correlation:** Do not drop `X-Request-Id` or W3C `traceparent` at an ingress, async job, queue, or outbound HTTP boundary. Carry correlation through async context and propagate it downstream.
- **No distributed tracing:** Logs alone cannot reliably explain latency across services. Instrument service boundaries with OpenTelemetry and preserve W3C propagation.
- **Dynamic span names:** Avoid names such as `GET /users/123`. Use route templates such as `GET /users/:id`; concrete IDs belong in carefully selected attributes, not span names.
- **Unclosed spans:** Do not return, throw, timeout, or cancel without ending the span. Record the exception and status, then close it in a `finally`-style cleanup path.
- **Sensitive logging:** Never log access tokens, passwords, credentials, or full request bodies. Redact sensitive fields before serialization.
- **Unbounded metric labels:** User IDs, request paths, email addresses, and arbitrary error messages create cardinality explosions. Use bounded dimensions and route templates.
- **Incomplete metrics:** Tracking only traffic or only errors is insufficient. Instrument request rate, error rate, latency histograms with p50/p95/p99 views, and saturation.
- **Raw-threshold alert fatigue:** A single latency or error spike is not an SLO. Alert on SLO burn rates, preferably over multiple windows, so alerts represent meaningful budget consumption.
- **Instrumentation without verification:** Do not assume telemetry works because code compiles. Test propagation, failure-path span cleanup, JSON validity, redaction, and metric cardinality.

Files in this skill

  • eval-1.baseline.md2.8 KB
  • eval-1.with-skill.md2.3 KB
  • eval-2.baseline.md2.7 KB
  • eval-2.with-skill.md1.8 KB
  • eval-3.baseline.md2.1 KB
  • eval-3.with-skill.md2.1 KB
  • trigger-1.md124 B
  • trigger-2.md143 B
  • trigger-3.md163 B
  • trigger-4.md125 B
  • trigger-5.md156 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.