Observability & OpenTelemetry
Span attributes
Span attributes describe each operation and are stored and sent to every backend. Keep their values from a fixed set, and keep personal data out, to protect privacy and keep queries fast.
What you will be able to do
- Explain the key and value rules for span attributes in the spec.
- Audit a service's attribute keys for personal data and unbounded values.
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
- OTLP collectorsAdvanced · 4 min
The OpenTelemetry Collector receives, processes and exports telemetry between services and backends. It gives one place to change routing, filters and keys without…
- Tail samplingAdvanced · 4 min
Tail sampling decides after a trace is complete, so it can keep errors and slow traces. The price is memory, and every span of one trace must reach the same sampler.
- ExemplarsAdvanced · 4 min
An exemplar links one sampled event, usually a trace ID, to an aggregated metric point. It turns a histogram spike into one trace to inspect, without storing every event.
- 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…
- Log enrichmentAdvanced · 4 min
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…