We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Learn Logging and Observability in Go

Add the logs, metrics, traces, and alerts you'll wish you had when production catches fire.

Browse Lessons (read-only)

What will you learn?

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.

Chapter List

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

Join 1,303 students in the Learn Logging and Observability in Go course

Read reviews of their learning experiences

This touches a lot of important topics, but doesn't go much into detail. Still a good introduction to the material but lacks depth.

(3/5)
Alex  profile image

Alex

Germany

A lot of useful information, but a bit rough around the edges. I feel like it's better for a review if you already know most of it, as it was challenging to "see" what was going on as we went. There was a lot of building things without having a solid understanding of what was being built towards.

(3/5)
Celeste Perez profile image

Celeste Perez

Portland, OR

Not only did I learn about logging. I learned a lot about Go and Go server code. I had to read a lot of Go code to pass the lessons.

(5/5)
Zafir Hossain Chowdhury profile image

Zafir Hossain Chowdhury

Dhaka, Bangladesh

The course quality is quite poor. The explanations in several lessons are very weak, especially in the chapters leading up to Chapter 6.

(1/5)
Pajau  profile image

Pajau

Chile

Excellent course. Very well structured and covers fundamental concepts of the topics. Also, I've learned how to use popular tools (Prometheus, Grafana, Jaeger, OpenTelemetry). Some assignments are quite challenging as I'm new to golang. It'd be best to have some experience in Go and web dev backend before taking this course.

(5/5)
Santawat Santiteerakul profile image

Santawat Santiteerakul

Thailand

Awesome!

(5/5)
Justin Largo profile image

Justin Largo

Raleigh, NC

You should take most other Go courses on Boot.dev before tackling this one. There's much more work involved than it looks.

(5/5)
Brian Xing profile image

Brian Xing

United States

This course introduces many concepts that will take logging, debugging, and optimization easier.

(5/5)
Cyberis  profile image

Cyberis

United States

Great intro to a wide range of content. Review Context in Go before taking.

(3/5)
Russell Navas profile image

Russell Navas

Seattle, WA

Showing 1-9 of 22

Browse Lessons (read-only)

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.