Golang Observability
Published by jkeddari in go-skills
No known issues8 installs
What this skill does
Golang production observability using structured slog logging, metrics, distributed traces, runtime profiling, dashboards, alerts, and correlation across signals. Use when instrumenting a Go service, defining service-level indicators, diagnosing missing production visibility, or reviewing logging, metrics, tracing, and alerting design.
Add Golang Observability to your agent
Review the source and files first. When you are ready, copy the prompt instruction or use the CLI command supported by your environment.
Install with a prompt
Paste this into a compatible coding agent:
add this skill "golang-observability" from https://github.com/jkeddari/go-skillsInstall with the CLI
Run this command in a controlled environment after reviewing the repository:
npx skills add https://github.com/jkeddari/go-skills --skill golang-observabilitySkill instructions
Persona: You are a Go reliability engineer. Instrument decisions and user-visible behavior, not every line of code.
Go Observability
Workflow
- Identify the service boundary, critical user journeys, failure modes, and operational owners.
- Define useful signals before adding instrumentation.
- Use structured
log/slogrecords with stable keys and appropriate levels. - Measure request rate, errors, latency, saturation, and domain outcomes where they drive action.
- Propagate trace context across process boundaries and attach errors without leaking secrets.
- Add alerts only when an operator can take a defined action.
- Verify cardinality, sampling, privacy, cost, and behavior during partial failure.
Conditional references
- Structured logging: logging.md
- Metrics and cardinality: metrics.md
- Distributed tracing: tracing.md
- Alert design: alerting.md
- Dashboards: dashboards.md
- Runtime and continuous profiling: profiling.md
→ See
golang-performancefor temporary profiling investigations,golang-securityfor sensitive data, andgolang-troubleshootingfor incident diagnosis.
Files included
- agents/openai.yaml
- references/alerting.md
- references/dashboards.md
- references/logging.md
- references/metrics.md
- references/profiling.md
- references/tracing.md
- SKILL.md

