golang-observability

Instrument Go applications with OpenTelemetry, Prometheus, and slog for logs, metrics, and traces.

Updated May 4, 2026
One-click install
npx skills add https://github.com/VIethoangnguyenle/nexus-enterprise --skill golang-observability-viethoangnguyenle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-observability
Source: https://github.com/VIethoangnguyenle/nexus-enterprise/tree/main/.agent/skills/golang-observability
Command: npx skills add https://github.com/VIethoangnguyenle/nexus-enterprise --skill golang-observability-viethoangnguyenle

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables practitioners to instrument Go services comprehensively to gain clear visibility into system behavior and diagnose issues effectively.

Core Features & Use Cases

  • Full-spectrum observability including structured logging, metrics, tracing, profiling, and RUM to monitor Go production environments.
  • Guidance on best practices for setting up and integrating OpenTelemetry, Prometheus, and log libraries like slog, with emphasis on scalable and secure configurations.
  • Use Case: When deploying a Go microservice, use this Skill to add structured logs, clean metrics, distributed traces, and profiling to detect bottlenecks, errors, or performance regressions.

Quick Start

Add distributed tracing spans around key functions, propagate context in database and external calls, and configure Prometheus metrics collection on your Go services.

Frequently Asked Questions about golang-observability

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

FAQPage Schema
How do I instrument a Go application with OpenTelemetry, Prometheus, and slog?

To instrument Go services for observability, add distributed tracing spans around key functions, propagate context in database and external calls, and configure Prometheus metrics collection alongside slog structured logging to monitor production environments.

What is the best way to add distributed tracing and metrics to Go microservices?

The best way to add observability to Go microservices is implementing full-spectrum signals including structured logs, distributed traces, and profiling using OpenTelemetry and Prometheus to detect bottlenecks and performance regressions reliably.

Does this approach support scalable and secure configurations for production Go systems?

Yes, this approach enforces security, scalability, and compliance standards specifically for production Go systems, ensuring full operational visibility and reliable fault diagnosis when configuring OpenTelemetry and Prometheus.

When do I need structured logging and profiling in Go production environments?

You need structured logging and profiling in Go production environments when deploying microservices to diagnose issues effectively, detect performance regressions, and gain clear visibility into system behavior using comprehensive observability signals.

Can I use slog for structured logging while integrating OpenTelemetry in Go services?

Yes, you can use slog for structured logging while integrating OpenTelemetry in Go services, as this combination provides best practices for comprehensive observability, ensuring full operational visibility and fault diagnosis in production.