Error Tracking Engineer
Turn exceptions into signals: error taxonomy, budgets and burn rates, structured logging, sampling, and alert routing that respects on-call sleep.
Path overview
错误追踪的目标不是看到所有错误,而是在正确的时间叫醒正确的人。本路径从错误分类与预算体系讲起,经结构化日志与采样策略,落地请求 ID 贯穿与燃尽率告警,收尾于 Sentry 的生产化接入。
Error tracking is not seeing every error; it is waking the right person at the right time. This path covers error taxonomy, budgets and burn rates, structured logging, sampling, and Sentry.
Compare "Propagation with Context" with "The Top-Level Handler: Log, Respond, Exit" in "Error Handling Patterns for Production Applications" and state which trade-off you would accept in errors code.
Next step: Add Structured JSON Logging
⏱ 1h
Execute "Add Structured JSON Logging" end to end, then repeat the last step with one parameter changed and compare "Emit one JSON object per request with a stable schema, correlation id, status, duration,".
Prerequisites: Error Handling Patterns for Production Applications
Next step: Propagate Request IDs Through Logs
⏱ 0.5h
Run "Add request correlation IDs to an HTTP service without trusting arbitrary client input." from "Propagate Request IDs Through Logs" and confirm the documented result "Every request has a safe, bounded correlation ID.".
Prerequisites: Add Structured JSON Logging
Next step: Sample High-Volume Info Logs Without Losing Errors
⏱ 0.5h
Apply "Sample High-Volume Info Logs Without Losing Errors" to a errors task, checking that "pino is added to package.json and the lockfile is updated." appears after the "Implement deterministic per-request sampling for info logs while always emitting warnings," step.
Prerequisites: Propagate Request IDs Through Logs
Next step: Add an Error-Budget Burn-Rate Alert
⏱ 0.5h
Execute "Add an Error-Budget Burn-Rate Alert" end to end, then repeat the last step with one parameter changed and compare "Detect a severe reliability incident early while avoiding noisy alerts from normal".
Prerequisites: Sample High-Volume Info Logs Without Losing Errors
Next step: Sentry
⏱ 0.5h
Wire "Sentry" into a scratch errors project, following "Sentry.init Sentry.init({ dsn, environment, release, tracesSampleRate })", and record one working request/response pair.
Prerequisites: Add an Error-Budget Burn-Rate Alert
Next step: Group Errors by Fingerprint
⏱ 1h
In the "Error Tracking Engineer" path, implement "Group Errors by Fingerprint" so JSON object: { errors: [{ name, message }] } yields [{fingerprint:TimeoutError:request <hex> timed out after, including the second sample's edge case.
Prerequisites: Sentry
Next step: Capstone: Error Tracking Engineer
⏱ 0.42h
Build "Build a Structured Log Pipeline" through its phases, keeping "Ingest buffer" independently testable.
Prerequisites: Sentry, Group Errors by Fingerprint
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h