How does eBPF-based observability work, and what are its limits?
AdvancedConceptTracing & OpenTelemetry
Answer
eBPF lets small verified programs run in the Linux kernel, attached to syscalls, kernel functions, network hooks and user-space probes (uprobes). Observability tools use it to see traffic and latency without changing application code.
Examples: Grafana Beyla (donated to OpenTelemetry as its eBPF instrumentation project), Pixie, Cilium Hubble for network flows, Parca/Pyroscope eBPF profilers, Inspektor Gadget.
Strengths: language-agnostic RED metrics and basic spans for HTTP/gRPC/SQL, network flow visibility, near-zero onboarding.
Limits:
- Needs a recent kernel, privileged pods or
CAP_BPF/CAP_SYS_ADMIN. - TLS traffic needs uprobes on the TLS library to see plaintext.
- Context propagation across async code and queues is limited, so traces are shallower than SDK instrumentation.
- No business attributes (customer tier, cart value).
We use eBPF for coverage and SDK instrumentation for depth.
More on Tracing & OpenTelemetry
What is distributed tracing, and what are a trace, a span and a span context?BeginnerWhat fields does an OpenTelemetry span carry?BeginnerWhat are span kinds and why do they matter?IntermediateWhat does the W3C `traceparent` header look like?IntermediateWhat is baggage, and how is it different from span attributes?IntermediateWhat is OpenTelemetry and what are its main parts?Beginner