golang-observability

Instrument Go services with structured logging, Prometheus metrics, OpenTelemetry tracing, and pprof profiling.

23|1|Updated May 10, 2026
One-click install
npx skills add https://github.com/berksunduri/GOPost --skill golang-observability-berksunduri
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-observability
Source: https://github.com/berksunduri/GOPost/tree/main/.agents/skills/golang-observability
Command: npx skills add https://github.com/berksunduri/GOPost --skill golang-observability-berksunduri

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires go, wails, react, prometheus, opentelemetry, grafana, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides comprehensive observability for Go services, helping engineers instrument, monitor, and troubleshoot production systems effectively.

Core Features & Use Cases

  • Structured Logging: Standardize logging with slog, ensuring log data is machine-readable and actionable.
  • Metrics Collection: Use Prometheus client to track service performance and resource usage.
  • Tracing: Implement OpenTelemetry distributed tracing for request flow and latency analysis.
  • Profiling: Enable on-demand and continuous profiling with pprof and Pyroscope for performance insights.
  • Alerting: Set up Grafana dashboards and Prometheus alerting for proactive issue detection.
  • Use Case: Integrate this Skill into your Go services to automatically instrument logging, metrics, and tracing, ensuring you have full visibility into service behavior and user experience.

Quick Start

Use the golang-observability skill to enable observability for a new Go service by running golang-observability enable my-service.

Frequently Asked Questions about golang-observability

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

FAQPage Schema
How do I set up Prometheus metrics and Grafana dashboards for a Go service?

Set up Prometheus metrics and Grafana dashboards for a Go service by integrating the Prometheus client to track performance and configuring Grafana for proactive alerting and issue detection.

How do I add OpenTelemetry tracing to a Go application?

Add OpenTelemetry tracing to a Go application by implementing distributed tracing to analyze request flow and latency, ensuring full visibility into service behavior and user experience.

What is the best way to implement structured logging in Golang?

The best way to implement structured logging in Golang is using the slog package to standardize logs, ensuring log data is machine-readable and actionable for production troubleshooting.

Can I correlate logs with traces using OpenTelemetry in Go services?

Yes, you can correlate logs with traces using OpenTelemetry in Go services to gain comprehensive observability and effectively troubleshoot production systems by linking log data to request flows.

Do I need Wails and React to enable observability in my Go service?

Yes, enabling observability in your Go service requires Wails and React alongside Go, Prometheus, OpenTelemetry, and Grafana to support the full instrumentation and monitoring stack.

How do I enable on-demand profiling with pprof in a Go service?

Enable on-demand profiling with pprof in a Go service to gather performance insights, and use Pyroscope for continuous profiling to identify resource usage and optimization opportunities.