生产实践
已收录文章:53篇
-
从生产排障角度讲 Go log/slog 的结构化字段、context logger、错误日志、脱敏、日志级别和 trace/metrics 关联。143 收藏
-
从 Go 项目里常见的 time.Sleep 脆弱测试出发,讲 testing/synctest 的测试气泡、虚拟时间、synctest.Wait、缓存过期和后台 goroutine 测试落地。428 收藏
-
Golang · Go教程 | 3星期前 | 性能分析 · trace · Go教程 · 生产实践 · 线上排障 · golang Go 性能诊断 trace Flight Recorder 线上排障从线上偶发慢请求出发,讲 Go Flight Recorder 的使用场景、触发条件、trace 快照、go tool trace 分析和生产接入边界。323 收藏
-
以慢接口排查为线索,讲 Go pprof 的 CPU、heap、goroutine、block profile 使用顺序和常见误判。101 收藏
-
从线上排障角度讲 errors.Is/As、fmt.Errorf %w、错误分层、日志上下文和用户可见错误的边界。151 收藏