Observability & OpenTelemetry
Log enrichment
Log enrichment adds context such as trace IDs and service names to each line when it is written. Only the application knows some of that context, and high-variety values belong in structured metadata.
What you will be able to do
- Explain where each kind of log field should be added and stored.
- Filter logs by trace ID and confirm the field is present on sample lines.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Observability & OpenTelemetry
- Distributed trace waterfallAdvanced · 4 min
A trace waterfall lays a request's spans on one timeline, so you can see which calls ran in sequence and where the time went. Per-service averages cannot show that order.
- Loki log queriesAdvanced · 4 min
Loki queries start with a label selector that chooses streams, then filter the text in those streams. A narrow selector and a short time window keep queries fast and…
- SLI designAdvanced · 4 min
An SLI measures what users experience, such as the share of good requests, and an SLO sets a target for it. Measuring at the edge and by route catches failures that…
- Multiwindow burn ratesAdvanced · 4 min
A burn rate shows how fast an error budget is being used, and a multiwindow alert pairs a long window with a short one. That fires early on real trouble and clears soon…
- Alert fatigueAdvanced · 4 min
Alert fatigue sets in when pages arrive so often that people stop reading them. Page on symptoms users feel, move cause-level alerts to dashboards or tickets, and…
- Telemetry cost controlsAdvanced · 4 min
Telemetry cost grows with the number of distinct series, not only with traffic. Limits in code, the collector and the backend each control cost, and the earliest…