
Golang Observability Opentelemetry
This is a solid foundation for adding observability to Go services using OpenTelemetry for distributed tracing, Prometheus for metrics, and Go's slog for structured logging. It includes auto-instrumentation patterns for HTTP and gRPC, health check endpoints for Kubernetes deployments, and proper graceful shutdown handling. You'd reach for this when you're moving beyond basic logging and need correlation IDs, trace context propagation, and a metrics endpoint that ops teams can actually work with. The approach is vendor-neutral, which matters if you're not locked into a specific observability platform yet. It's particularly relevant for Go 1.21+ since it leverages the standard library's slog package instead of pulling in third-party logging dependencies.
- skills.sh installs
- 421
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Install
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill golang-observability-opentelemetry --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
When to Use This Skill
Sponsors
Details
- Repository
- github.com/bobmatnyc/claude-mpm-skills
- Categories
- DevOps & CI/CD, Go
- First seen
- Jun 3, 2026
More from bobmatnyc/claude-mpm-skills
All 158- Shadcn Ui421
- Golang Concurrency Patterns420
- Digitalocean Overview419
- Hono Validation419
- Digitalocean Networking415
- Digitalocean Storage414
- Golang Database Patterns414
- Openrouter413
- Digitalocean Managed Databases404
- Verification Before Completion401
- Test Driven Development400
- Better Auth Authentication398
- Kysely398
- Kubernetes397
- Json Data Handling394
- Systematic Debugging391
- Vue390
- Api Documentation389
- Screenshot389
- Software Patterns382
- Nextjs V16380
- Vercel Deployments Builds378
- Security Scanning377
- Test Quality Inspector376