/sdlc:observabilityfrom sdlc
Guides implementation of observability including structured logging, metrics, tracing, and monitoring configuration with OpenTelemetry.
Ships in sdlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guidance for implementing observability requirements including logging, metrics, tracing, and monitoring configuration.
Available Tools: If using Claude Code, the
agents:sre-engineeragent specializes in observability setup and SLO management. Theagents:devops-engineeragent can help configure monitoring infrastructure.
All logging MUST use structured format (JSON preferred):
{
"timestamp": "2024-01-15T10:30:00.000Z",
"level": "info",
"message": "Request processed",
"service": "api-gateway",
"trace_id": "abc123",
"span_id": "def456",
"duration_ms": 45,
"status_code": 200
}
Use consistent log levels with defined semantics:
| Level | Purpose | When to Use |
|---|---|---|
| ERROR | Errors requiring attention | Failures, exceptions |
| WARN | Potential issues | Degraded performance, retries |
| INFO | Significant events | Request completion, state changes |
| DEBUG | Detailed information | Development, troubleshooting |
| TRACE | Very detailed tracing | Deep debugging |
All log entries MUST include:
| Field | Description |
|---|---|
timestamp | ISO 8601 format with timezone |
level | Log severity level |
message | Human-readable description |
service | Service/application name |
Log entries SHOULD include when applicable:
| Field | Description |
|---|---|
trace_id | Distributed trace identifier |
span_id | Span identifier |
user_id | User identifier (if authenticated) |
request_id | Request correlation ID |
duration_ms | Operation duration |
Logs MUST NOT contain:
Implement appropriate metric types:
| Type | Purpose | Examples |
|---|---|---|
| Counter | Cumulative values | Request count, errors |
| Gauge | Current values | Queue size, connections |
| Histogram | Value distributions | Response time, payload size |
| Summary | Quantile calculations | P50, P95, P99 latencies |
Services MUST expose:
| Metric | Type | Description |
|---|---|---|
requests_total | Counter | Total requests by endpoint/status |
request_duration_seconds | Histogram | Request latency |
errors_total | Counter | Error count by type |
active_connections | Gauge | Current connections |
Follow naming conventions:
# Format: <namespace>_<name>_<unit>
http_requests_total
http_request_duration_seconds
db_connections_active
cache_hits_total
Use consistent label naming:
| Label | Description |
|---|---|
service | Service name |
endpoint | API endpoint |
method | HTTP method |
status | Response status |
error_type | Error classification |
Implement distributed tracing using OpenTelemetry:
# OpenTelemetry configuration
exporters:
otlp:
endpoint: "collector:4317"
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
When tracing is implemented, propagate context:
| Header | Standard |
|---|---|
traceparent | W3C Trace Context |
tracestate | W3C Trace Context |
X-Request-ID | Request correlation |
Spans SHOULD include:
Services MUST expose health endpoints:
| Endpoint | Purpose | Response |
|---|---|---|
/health | Basic health | 200 OK or 503 |
/health/live | Liveness probe | 200 if running |
/health/ready | Readiness probe | 200 if ready to serve |
{
"status": "healthy",
"checks": {
"database": {
"status": "healthy",
"latency_ms": 5
},
"cache": {
"status": "healthy",
"latency_ms": 1
}
},
"version": "1.2.3",
"uptime_seconds": 3600
}
Health checks SHOULD verify:
Define alerts for critical conditions:
| Condition | Severity | Response |
|---|---|---|
| Service down | Critical | Immediate page |
| Error rate > 5% | High | Page within 5 min |
| Latency P95 > 1s | Medium | Notify team |
| Disk > 80% | Warning | Create ticket |
Alerts MUST include:
# Verify structured log output
app_command 2>&1 | jq .
# Check health endpoint
curl -s http://localhost:8080/health | jq .
# Verify metrics endpoint
curl -s http://localhost:8080/metrics | grep -E "^(http_|app_)"
# Check for sensitive data in logs
grep -r -i "password\|secret\|token" logs/ | wc -l
# Should be 0
use tracing::{info, instrument};
#[instrument]
fn process_request(id: &str) {
info!(request_id = %id, "Processing request");
}
import pino from "pino";
const logger = pino({
level: "info",
formatters: {
level: (label) => ({ level: label }),
},
});
logger.info({ requestId, duration }, "Request processed");
import structlog
logger = structlog.get_logger()
logger.info("request_processed", request_id=request_id, duration=duration)
references/logging-config.md - Logging configuration guidereferences/metrics-guide.md - Metrics implementation patternsexamples/otel-config.yaml - OpenTelemetry configurationexamples/alerting-rules.yaml - Prometheus alerting rulesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (zircote-plugins/sdlc-quality) — no native marketplace selected
npx claudepluginhub p/zircote-sdlc10 skills in this plugin
/aiThis skill should be used when the user asks about "AI development", "AI coding", "AI assistant", "CLAUDE.md", "AI context", "AI guidelines", "code generation", "AI workflow", "AI review", "AI configuration", or needs guidance on configuring AI assistants and AI-assisted development workflows./ciThis skill should be used when the user asks about "CI pipeline", "continuous integration", "GitHub Actions", "CI configuration", "CI jobs", "workflow", "CI caching", "CI environment", "pipeline structure", or needs guidance on setting up or configuring CI/CD pipelines./docsThis skill should be used when the user asks about "documentation", "README", "CHANGELOG", "CONTRIBUTING", "ADR", "architecture decision record", "changelog format", "keep a changelog", "doc comments", "API documentation", or needs guidance on project documentation requirements.Other plugins' skills for the same job