go-observability
Installation
SKILL.md
When to Use
- Adding structured logging to a service
- Implementing distributed tracing across microservices
- Collecting and exporting metrics
- Exporting observability data to object storage for long-term retention
- Setting up Gin/gRPC middleware for automatic instrumentation
Critical Patterns
| Pattern | Rule |
|---|---|
| OpenTelemetry standard | OTel SDK for traces + metrics — vendor neutral, export anywhere |
| slog for logging | Go stdlib log/slog — no Zap, no Logrus, no external deps |
| JSON in production | Structured JSON logs in prod, text in dev |
| Trace context propagation | Every request gets a trace ID, propagated across services |
| Export to object storage | Periodic export of logs/metrics/traces to S3/GCS/MinIO for retention |
| Cloud agnostic | OpenTelemetry Collector handles export — backend is config, not code |
Related skills