Traces, metrics, endpoints: The what, why, and how
summary
Argues for concrete defaults: log in JSON with four levels (debug, info, warning, error) and include contextual fields so logs can help rebuild flows; prefer Prometheus pull style metrics, use counters/gauges and histograms for latency, never use metrics for billing and keep metric counts modest; expose liveness/readiness and richer JSON dependency endpoints so failures point to the broken downstream; instrument spans for distributed traces and adopt OpenTelemetry and OpenMetrics to tie logs, metrics, and traces together.
AI-written summary · about
chapters (19)
- 0:00Introduction and speaker intro
- 1:09Who is Brian Lyles
- 3:16What is a log
- 6:55Log levels and best practices
- 8:19Logging in JSON format
- 9:43What should be logged
- 11:31Logs best practices summary
- 12:14Metrics history and controversy
- 15:05Push vs pull metrics
- 16:28Defining metrics with SLOs
- 18:34Prometheus metrics primer
- 20:21Histograms and summaries
- 21:45Why create metrics
- 22:30Metrics best practices
- 23:56Using endpoints for service health
- 25:39Introduction to tracing
- 27:04OpenTelemetry and observability
- 27:47Monitoring as a practice
- 28:31Closing remarks and thanks
