Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Boot.dev

Learn Logging and Observability in Go

via Boot.dev

Overview

Stuck in Tutorial Hell? Learn Backend Dev the Right Way
Boot.dev teaches Python, SQL & Go through projects you won't want to stop. 25% off with code CLASSCENTRAL.
Get 25% Off
Build production-ready logging and observability skills for Go applications. You'll design structured, context-rich logs, collect and visualize metrics with Prometheus and Grafana, configure actionable alerts, and profile performance with pprof. By the end, you'll be able to instrument distributed traces with OpenTelemetry and Jaeger to debug failures and latency bottlenecks fast.

Syllabus

  • Observability
    • Understand observability fundamentals and the pillars of logs, metrics, and traces so you can debug Go services with confidence.
  • Logging
    • Implement reliable logging in Go using proper logger setup, dependency injection, buffering, and lifecycle management.
  • Structured Logging
    • Use Go's slog package to produce structured logs with levels, key-value fields, and output formats that scale in production.
  • Log Strategies
    • Apply logging best practices that reduce noise, preserve signal, and make production incidents easier to investigate.
  • Logging Errors
    • Capture error logs effectively with stack traces, grouped context, and rich attributes while avoiding duplicate or misleading logs.
  • Logging Context
    • Attach request, user, build, and instance context to logs so every event is searchable, correlated, and actionable.
  • Log Storage
    • Route logs to console, files, and syslog with rotation strategies that keep long-running services observable and maintainable.
  • Log Security
    • Protect sensitive data in logs using filtering, obfuscation, encryption, and safer error-response logging patterns.
  • Metrics
    • Instrument Go services with Prometheus and Grafana, collect system and app metrics, and build dashboards that reveal health trends.
  • Alerting
    • Design actionable alerts with sensible thresholds to catch real issues early without creating alert fatigue.
  • Profiling
    • Use pprof to analyze CPU, memory, and goroutine behavior in Go applications and fix performance bottlenecks.
  • Tracing
    • Instrument distributed tracing with OpenTelemetry and Jaeger to follow requests across services and diagnose latency issues.

Taught by

Jonathan Hall, Theo, Lane, Waseem, and Matt

Reviews

Start your review of Learn Logging and Observability in Go

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.