logging-observability
Logging and Observability
Overview
Observability enables understanding system behavior through logs, metrics, and traces. This skill provides patterns for:
- Structured Logging: JSON logs with correlation IDs and contextual data
- Distributed Tracing: Span-based request tracking across services (OpenTelemetry, Jaeger, Zipkin)
- Metrics Collection: Counters, gauges, histograms for system health (Prometheus patterns)
- Log Aggregation: Centralized log management (ELK, Loki, Datadog)
- Alerting: Symptom-based alerts with runbooks
Instructions
1. Structured Logging (JSON Logs)
Python Implementation
More from cosmix/loom
prometheus
|
64ci-cd
Designs and implements CI/CD pipelines for automated testing, building, deployment, and security scanning across multiple platforms. Covers pipeline optimization, test integration, artifact management, and release automation.
61grafana
|
58data-validation
Data validation patterns including schema validation, input sanitization, output encoding, and type coercion. Use when implementing validate, validation, schema, form validation, API validation, JSON Schema, Zod, Pydantic, Joi, Yup, sanitize, sanitization, XSS prevention, injection prevention, escape, encode, whitelist, constraint checking, invariant validation, data pipeline validation, ML feature validation, or custom validators.
50event-driven
Event-driven architecture patterns including message queues, pub/sub, event sourcing, CQRS, and sagas. Use when implementing async messaging, distributed transactions, event stores, command query separation, domain events, integration events, data streaming, choreography, orchestration, or integrating with RabbitMQ, Kafka, Apache Pulsar, AWS SQS, AWS SNS, NATS, event buses, or message brokers.
46refactoring
|
40