golang-observability

Instrument Go services with slog, Prometheus, OpenTelemetry, and profiling.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/tamago0224/kuroshio-mta --skill golang-observability-tamago0224
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-observability
Source: https://github.com/tamago0224/kuroshio-mta/tree/main/.agents/skills/golang-observability
Command: npx skills add https://github.com/tamago0224/kuroshio-mta --skill golang-observability-tamago0224

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides production-grade observability for Go services by integrating structured logging, metrics, tracing, profiling, and real-user monitoring into a cohesive workflow.

Core Features & Use Cases

  • Instrumentation blueprint for Go services to achieve end-to-end visibility (logs, metrics, traces, and profiling).
  • Guidance for migrating legacy loggers to slog, setting up OpenTelemetry, and enabling RUM/CDP integration for compliant user analytics.
  • Real-world scenarios include deploying dashboards, tracing distributed requests, and maintaining GDPR/CCPA compliant tracking with CDPs.

Quick Start

Configure your Go service to enable slog-based structured logging, Prometheus metrics, OpenTelemetry tracing, and optional continuous profiling; then validate traces and logs end-to-end.

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 service for end-to-end observability?

Migrate legacy loggers to slog to achieve structured logging in Go. This skill guides the transition from existing logging setups to slog, ensuring your logs integrate cleanly with metrics and traces for production observability.

Can I integrate OpenTelemetry tracing and Prometheus metrics in Go?

Integrate Real-User Monitoring (RUM) and Customer Data Platforms (CDPs) with your Go backend to capture user analytics. This skill ensures that your tracking implementation remains compliant with GDPR and CCPA regulations while monitoring real user interactions.

What is the best way to add continuous profiling to a Go application?

Yes, this approach fits retrofitting existing Go codebases for observability. It provides a structured blueprint to layer in slog, Prometheus, and OpenTelemetry without disrupting current operations, bridging gaps in logs, metrics, and traces.

Does this observability setup support GDPR and CCPA compliant user tracking?

Combine slog structured logging with OpenTelemetry traces to validate distributed requests end-to-end in Go. This workflow correlates log events with trace spans, enabling precise debugging across distributed service boundaries.