go-observability

Instrument Go services with Prometheus metrics and OpenTelemetry traces.

8|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/muratmirgun/gophers --skill go-observability-muratmirgun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-observability
Source: https://github.com/muratmirgun/gophers/tree/main/skills/go-observability
Command: npx skills add https://github.com/muratmirgun/gophers --skill go-observability-muratmirgun

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you instrument Go services so production issues become visible through metrics, traces, and trace-linked logs instead of guesswork.

Core Features & Use Cases

  • Prometheus metrics: Add counters, gauges, and histograms with bounded labels for request rates, error rates, and latency monitoring.
  • OpenTelemetry tracing: Create spans for service methods, DB calls, and outbound HTTP requests with proper context propagation and error status handling.
  • Signal correlation: Connect metrics to traces with exemplars and propagate trace or request IDs so on-call debugging can move from alert to root cause quickly.
  • Use Case: A p99 latency alert fires, you click the exemplar in Grafana, jump to the slow trace, and identify the exact database call that caused the spike.

Quick Start

Ask the AI to instrument your Go handler with bounded Prometheus metrics, OpenTelemetry spans, and exemplar-based trace correlation.

Frequently Asked Questions about go-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I instrument Go services with Prometheus metrics and OpenTelemetry tracing?

Instrument Go services by adding Prometheus counters and histograms for request rates and latency, and create OpenTelemetry spans for database operations and outbound API calls with proper context propagation to make production issues visible.

How does signal correlation connect Prometheus metrics to OpenTelemetry traces?

Signal correlation connects metrics to traces using Prometheus exemplars and propagates trace IDs, allowing on-call debugging to move from a Grafana alert directly to the slow trace and identify the exact database call causing the spike.

Can I use this to monitor HTTP handler latency and errors in Go?

Yes, this instruments HTTP handlers with bounded Prometheus metrics for latency and error monitoring, while recording OpenTelemetry error statuses to ensure production debugging replaces guesswork with observable request paths.

What's the best way to add trace correlation to Go database operations?

Add trace correlation to database operations by creating OpenTelemetry spans around DB calls with proper context propagation, linking them to Prometheus histograms via exemplars so slow queries are traceable from metric alerts.

Do I need bounded labels for Prometheus counters and histograms in Go?

Yes, bounded labels are required for Prometheus counters and histograms to monitor request rates, error rates, and latency without unbounded cardinality, ensuring metrics remain performant and traceable alongside OpenTelemetry spans.

Why does my Go service need exemplar support for observability?

Exemplar support is needed to link Prometheus metric data points directly to OpenTelemetry traces, enabling fast root cause identification by jumping from latency or error alerts in Grafana to the specific request trace.