bobmatnyc avatar

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-code

Installs 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
1levnikolaevich avatarln-115-devops-docs-creatorlevnikolaevich/claude-code-skillsCreates infrastructure.md and runbook.md (Docker-conditional). Use for DevOps documentation in any project.384skills.sh installs
2bobmatnyc avatarvercel-observabilitybobmatnyc/claude-mpm-skillsVercel observability for Web Analytics, Speed Insights, logs, tracing, alerts, and observability tooling. Use when monitoring performance or debugging productio345skills.sh installs
3levnikolaevich avatarln-627-observability-auditorlevnikolaevich/claude-code-skillsChecks structured logging, health checks, metrics collection, request tracing, log levels. Use when auditing observability.316skills.sh installs
4odyssey4me avatargitlabodyssey4me/agent-skillsCreate and manage GitLab issues, merge requests, pipelines, and repositories using the glab CLI. Use when asked to open an MR, review a merge request, check CI/303skills.sh installs
5patricio0312rev avataralerting-dashboard-builderpatricio0312rev/skillsCreates SLO-based alerts and operational dashboards with key charts, alert thresholds, and runbook links. Use for "alerting", "dashboards", "SLO", or "monitorin262skills.sh installs
6v1truv1us avatarcoolify-deployv1truv1us/ai-eng-systemDeploy applications to Coolify self-hosting platform. Use when deploying to Coolify, configuring build settings, setting environment variables, managing health 191skills.sh installs