Skip to content
All articles
APM·7 min read·November 26, 2026

eBPF Tracing: Application Monitoring Without Changing Your Code

eBPF lets a monitoring agent see HTTP, gRPC and database calls from inside the Linux kernel — no SDK, no redeploy. Here is what that buys you and where it stops.

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.

Frequently asked questions

Does eBPF tracing slow my application down?

The programs are small and run in the kernel; the agent batches spans and sends them about every 30–60 seconds. On a busy host, narrow the ports it instruments or lower sampling.

Which kernel do I need?

Linux 5.8 or newer with BTF (/sys/kernel/btf/vmlinux present), and root. The AppStatus installer checks both and stops with a clear message if not.

Can eBPF see my exceptions and logs?

No. It sees calls from the kernel, not the program’s internals. Add OpenTelemetry on the same host for logs, runtime metrics and stack traces.

Try AppStatus free for 14 days

Set up your first monitor, alert and status page in under 10 minutes. No credit card.

Start free trial