What eBPF is
eBPF is a feature of the Linux kernel that runs small, verified programs on kernel events — a socket write, a function call, a process start. Monitoring agents use it to observe network calls of every process on a host without touching the processes themselves. Nothing is injected into your application and nothing needs to restart.
What eBPF tracing can see
Because it reads traffic at the kernel, eBPF sees every service on the host the same way — Go, Java, Node.js, Python, PHP, Rust, compiled or interpreted.
- •Incoming and outgoing HTTP and gRPC requests, with route, status and duration
- •SQL, Redis, Kafka and MongoDB calls
- •Which process, container or pod made each call
- •Calls between services, so a service map appears on its own
What it cannot see
eBPF sees requests, queries and calls — not what happens inside the program. It does not capture your application’s own logs, runtime metrics such as heap or garbage collection, or exception stack traces. For those, add OpenTelemetry instrumentation next to it; the two work together on the same host. Request headers and query strings are read before TLS in some cases, which is why a careful agent drops them.
What it needs
A Linux kernel 5.8 or newer with BTF (most distribution kernels since 2021 have it), and root or the CAP_BPF and CAP_PERFMON capabilities. Some hardened setups block it: kernel lockdown under Secure Boot, and on Ubuntu a strict kernel.perf_event_paranoid setting can stop the agent from hooking into Go programs.
One command with AppStatus
AppStatus ships an installer that checks the kernel, finds every listening service and container, installs the eBPF agent as a systemd unit and starts it. It also adds database and queue samplers for the host. Run it again any time to change options; run it with uninstall=1 to remove everything it added. Docker hosts run the same agent as a container, and Kubernetes runs it as a DaemonSet from a Helm chart.
- •curl -sSL "https://agent.appstatus.io/apm.sh?key=<key>&env=production&project=shop" | sudo sh
- •journalctl -u appstatus-apm -f — one “instrumenting process” line per service
- •curl -sSL "https://agent.appstatus.io/apm.sh?uninstall=1" | sudo sh — remove it
When to choose eBPF, and when not
Choose eBPF when you want traces from many services quickly, cannot change the code (third-party or legacy apps), or want a baseline before deciding where to invest in instrumentation. Choose OpenTelemetry SDKs when you need custom spans, business attributes, exception stack traces or runtime metrics. Many teams run both.