golang-observability-opentelemetry
Installation
SKILL.md
Go Observability with OpenTelemetry
Overview
Modern Go applications require comprehensive observability through the three pillars: traces, metrics, and logs. OpenTelemetry provides vendor-neutral instrumentation for distributed tracing, Prometheus offers powerful metrics collection, and Go's slog package (1.21+) delivers structured logging with minimal overhead.
Key Features:
- π OpenTelemetry: Distributed tracing with context propagation
- π Prometheus: Metrics collection with /metrics endpoint
- π Structured Logging: slog with JSON formatting and correlation IDs
- π― Auto-Instrumentation: HTTP/gRPC middleware patterns
- π Health Checks: Kubernetes-ready readiness/liveness probes
- π Graceful Shutdown: Clean exporter shutdown and signal handling