Comprehensive guidance for logging, metrics, tracing, and alerting in the Mossback platform. Covers structured logs, log levels, log fields, request ids, correlation ids, counters, gauges, histograms, metric names, metric labels, spans, trace context, sampling, dashboards, alerts, alert thresholds, on-call routing, and service level objectives. Also covers how logs and metrics are emitted from request handlers and jobs, how to add a dashboard panel, how to add or tune an alert, and how to trace a slow request end to end. Helps with investigating an incident, finding why something is slow, adding instrumentation to new code, and reducing noisy alerts. Use when the user mentions logs, logging, a metric, a dashboard, an alert, tracing, monitoring, latency, an incident, on-call, or asks how to see what the system is doing. Always follows the Mossback platform conventions, house style, and established best practices.
Log through request.log or job.log with an object first and a message second.
Never log an email address, phone number, or street address. Log the internal id.
Metric names are snake case with the unit as a suffix, registered in src/observability/metrics.ts.
An alert is added in ops/alerts/<service>.yaml with a runbook link.
1---2name: observability3description: Comprehensive guidance for logging, metrics, tracing, and alerting in the Mossback platform. Covers structured logs, log levels, log fields, request ids, correlation ids, counters, gauges, histograms, metric names, metric labels, spans, trace context, sampling, dashboards, alerts, alert thresholds, on-call routing, and service level objectives. Also covers how logs and metrics are emitted from request handlers and jobs, how to add a dashboard panel, how to add or tune an alert, and how to trace a slow request end to end. Helps with investigating an incident, finding why something is slow, adding instrumentation to new code, and reducing noisy alerts. Use when the user mentions logs, logging, a metric, a dashboard, an alert, tracing, monitoring, latency, an incident, on-call, or asks how to see what the system is doing. Always follows the Mossback platform conventions, house style, and established best practices.4metadata:5 source: https://skillmd.com/skills/tuyv/observability6---78# Observability910## Rules1112- Log through `request.log` or `job.log` with an object first and a message second.13- Never log an email address, phone number, or street address. Log the internal id.14- Metric names are snake case with the unit as a suffix, registered in `src/observability/metrics.ts`.15- An alert is added in `ops/alerts/<service>.yaml` with a runbook link.
Run npx get-skill add tuyv/observability in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Comprehensive guidance for logging, metrics, tracing, and alerting in the Mossback platform. Covers structured logs, log levels, log fields, request ids, correlation ids, counters, gauges, histograms, metric names, metric labels, spans, trace context, sampling, dashboards, alerts, alert thresholds, on-call routing, and service level objectives. Also covers how logs and metrics are emitted from request handlers and jobs, how to add a dashboard panel, how to add or tune an alert, and how to trace a slow request end to end. Helps with investigating an incident, finding why something is slow, adding instrumentation to new code, and reducing noisy alerts. Use when the user mentions logs, logging, a metric, a dashboard, an alert, tracing, monitoring, latency, an incident, on-call, or asks how to see what the system is doing. Always follows the Mossback platform conventions, house style, and established best practices. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tuyv (@tuyv) published this skill. Their other Agent Skills are listed on their SkillMD profile.