Observability Instrumentation

Instrument Go services with structured logs, Prometheus metrics, and OpenTelemetry traces.

7|3|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Zpankz/mcp-skillset --skill observability-instrumentation-zpankz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Observability Instrumentation
Source: https://github.com/Zpankz/mcp-skillset/tree/main/observability-instrumentation
Command: npx skills add https://github.com/Zpankz/mcp-skillset --skill observability-instrumentation-zpankz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Observability gaps in production environments hinder debugging, performance tuning, and reliability. This skill provides a complete approach to instrumenting software with structured logs, metrics, and distributed tracing to gain visibility across systems.

Core Features & Use Cases

  • Pillar-based observability: Structured logging, metric instrumentation, and tracing patterns to observe production systems.
  • Go slog integration: Use Go's slog with JSON formatting and context propagation to carry request IDs across services.
  • Use case: Add observability to a microservice to quickly diagnose latency and error causes across components.

Quick Start

Configure structured logging with Go slog, add Prometheus-style metrics, and propagate a request ID across boundaries to begin observing a running application.

Frequently Asked Questions about Observability Instrumentation

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

FAQPage Schema
How do I add observability to a Go microservice with logs, metrics, and traces?

To add observability to a Go microservice, you instrument it with structured logs using Go slog, Prometheus-compatible metrics, and OpenTelemetry tracing. This enables end-to-end visibility for diagnostic debugging and performance tuning across microservice architectures.

What is the best way to propagate a request ID across microservices in Go?

The best way to propagate a request ID across microservices is by using Go slog with context propagation. This context awareness carries the request ID across service boundaries, linking structured logs and OpenTelemetry traces for accurate diagnostic debugging.

Does this observability instrumentation work with existing services or only new ones?

This observability instrumentation works with both new and existing services. It applies production-grade visibility patterns to any service requiring diagnostic debugging, performance tuning, and SLO monitoring across microservice architectures.

How do I configure Prometheus metrics and OpenTelemetry tracing for production visibility?

To configure Prometheus metrics and OpenTelemetry tracing for production visibility, you apply pillar-based observability patterns within your application. This solves observability gaps by enabling metric instrumentation and distributed tracing alongside structured logging.

Why do I need structured logging with Go slog for microservice debugging?

You need structured logging with Go slog for microservice debugging because it provides JSON formatted logs with context propagation. This solves observability gaps in production environments by carrying request IDs across boundaries to quickly diagnose latency and error causes.

When do I need distributed tracing and SLO monitoring in a microservice architecture?

You need distributed tracing and SLO monitoring in a microservice architecture when you lack visibility into production environments. Implementing OpenTelemetry tracing and metrics solves performance tuning and reliability issues across service boundaries.