Skip to content

APM & tracing

eBPF (no code), OpenTelemetry Collector, SDK or Kubernetes: traces, services and endpoints.

In the console: Console → Observe → Applications (APM)

All guides

APM shows how requests move through your services: the service map, endpoints with latency percentiles and error rates, trace waterfalls, slow database calls and outgoing calls. Everything belongs to an application (for example “shop”) and an environment.

There are four ways in. Pick the first one that fits: eBPF needs no code change; the OpenTelemetry Collector method configures your apps for you; an SDK gives the most detail; Kubernetes installs either of them as a chart.

Why use it

  • A page is slow and you need to know which service, endpoint or query is slow.
  • You want a live service map and latency, error rate and throughput per endpoint.
  • You want a release regression tied to the deploy that caused it.

How it works

  1. 1Spans are produced by the eBPF agent (from the kernel, no code change), by OpenTelemetry in your app, or by the SDK.
  2. 2They are sent over OTLP/HTTP with an APM key, tagged with application and environment.
  3. 3AppStatus redacts sensitive values, groups spans into traces, builds the service map and per-endpoint metrics, and links errors, logs, deploys and pods.
  4. 4Detectors compare each window with the baseline and raise insights; SLOs track error budgets.

What you get

  • Service map, services, endpoints, traces, errors, databases, external services, deployments, SLOs and AI insights per application.
  • Sensitive values redacted before storage; SQL literals become “?”.
  • A link from every slow page in RUM and every log line to its trace.

Before you start

  • eBPF: Linux kernel 5.8 or newer with BTF, and root. The installer checks both and stops with a clear message if not.
  • OpenTelemetry: Node.js 18.19+, Java 8+, Python 3.8+, .NET, Ruby, PHP or Go.
  • Outbound HTTPS (443) to agent.appstatus.io.

Set it up

Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.

  1. 1

    Create the key in Get Started

    Get Started → Applications (APM) → eBPF → Linux Host. Name the application and environment, then create the key.

  2. 2

    Run one command as root

    It checks the kernel, finds every listening service and container, installs the eBPF agent as the systemd unit appstatus-apm and starts it. It also adds this server’s database, queue and setup samplers. Run it again any time (new key, changed options) — it updates and restarts.

    terminal
    curl -sSL "https://agent.appstatus.io/apm.sh?key=<your-key>&env=production&project=shop" | sudo sh
  3. 3

    Docker host instead

    Run the same agent as a container beside your containers.

    terminal
    sudo mkdir -p /etc/appstatus
    curl -sSL "https://agent.appstatus.io/apm.sh?show=config" | sudo tee /etc/appstatus/beyla.yml > /dev/null
    docker rm -f appstatus-ebpf >/dev/null 2>&1
    docker run -d --name appstatus-ebpf --restart unless-stopped \
      --privileged --pid=host \
      -v /etc/appstatus/beyla.yml:/etc/appstatus/beyla.yml:ro \
      -v /var/run/docker.sock:/var/run/docker.sock:ro \
      -e BEYLA_CONFIG_PATH=/etc/appstatus/beyla.yml \
      -e OTEL_EXPORTER_OTLP_ENDPOINT="https://agent.appstatus.io" \
      -e OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" \
      -e OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <your-key>" \
      -e OTEL_RESOURCE_ATTRIBUTES="appstatus.telemetry.source=ebpf,deployment.environment=production,host.name=$(hostname),appstatus.project=shop" \
      --cpus 0.5 --memory 512m \
      <image shown in Get Started>
  4. 4

    Advanced options

    Protocols (HTTP, gRPC, SQL, Redis, Kafka, MongoDB), sampling (100/50/25/10%) and “ports to instrument” change the command in Get Started. Request headers and query strings are never captured.

Check it works

  1. 1

    Send traffic and test

    Open a page or call an endpoint, wait a minute (eBPF sends in 30–60 s batches), then press Test Connection in Get Started. The application appears under Applications (APM).

  2. 2

    On the host

    terminal
    systemctl status appstatus-apm --no-pager            # eBPF: active (running)
    journalctl -u appstatus-apm -f                        # one "instrumenting process" line per service
    systemctl status otelcol-contrib --no-pager           # collector
    curl -sSL 'https://agent.appstatus.io/otel-apps.sh?arch=host&metrics=none' | sudo CHECK=1 sh   # collector → port → AppStatus → key → each app

Use it

  1. 1

    Both methods together

    eBPF sees requests, queries and calls from the kernel — not inside the program. For your app’s own logs, runtime metrics (heap, GC) and exception stack traces, add the OpenTelemetry Collector method on the same server; both can run at once.

  2. 2

    Application settings

    Application → Settings: service names, sampling, SLO targets and who may remove the application.

Uninstall / remove

  1. 1

    eBPF agent (Linux host)

    Removes the agent, its configuration and key file, and the host samplers it added.

    terminal
    curl -sSL "https://agent.appstatus.io/apm.sh?uninstall=1" | sudo sh
  2. 2

    eBPF agent (Docker)

    terminal
    docker rm -f appstatus-ebpf
  3. 3

    OpenTelemetry Collector

    Takes the settings out of every application it configured and restarts them, then removes the collector.

    terminal
    curl -sSL 'https://agent.appstatus.io/otel-apps.sh?arch=host&metrics=none' | sudo UNDO=1 sh
    sudo systemctl disable --now otelcol-contrib
    sudo rm /etc/systemd/system/otelcol-contrib.service /etc/otelcol-contrib/appstatus.env
  4. 4

    Kubernetes

    terminal
    helm uninstall appstatus-apm-ebpf -n appstatus     # eBPF DaemonSet
    helm list -n appstatus                              # any other appstatus release
  5. 5

    Delete the application’s APM data

    Applications (APM) → ⋮ → Remove from APM. Services, traces, errors, SLOs, insights, settings and incidents are deleted and new traces refused. Kubernetes and RUM of the same application are not touched.

Troubleshooting

The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.

No data after a few minutes

Spans are sent when the app handles something. Send it a request, wait a minute, then Test Connection. eBPF: there must be an “instrumenting process” line for your app; it must serve or call HTTP, gRPC, SQL, Redis, Kafka or MongoDB and match “Ports to instrument”.

terminal
sudo journalctl -u appstatus-apm --since -10min --no-pager | grep -E "instrumenting process|level=(ERROR|WARN)"
“kernel … below 5.8” or “no BTF” — the installer stopped

This kernel cannot run eBPF tracing. Use the OpenTelemetry Collector or SDK method instead, or a newer distribution kernel.

terminal
uname -r
ls -l /sys/kernel/btf/vmlinux
The eBPF agent keeps restarting

Its log names the reason. “operation not permitted” on a hardened kernel usually means lockdown mode (Secure Boot) blocks eBPF; use the collector method.

terminal
sudo journalctl -u appstatus-apm -n 50 --no-pager
cat /sys/kernel/security/lockdown 2>/dev/null   # [integrity] or [confidentiality] blocks eBPF
The collector service does not start

Almost always the configuration. Validate it — the error names the line — then run “Configure the Collector” in Get Started again.

terminal
otelcol-contrib validate --config /etc/otelcol-contrib/config.yaml
sudo journalctl -u otelcol-contrib -n 50 --no-pager
“address already in use” (4317 / 4318)

Another collector or agent already holds the port. Find it and stop it, then restart this one.

terminal
sudo ss -ltnp | grep -E ':431[78]'
sudo systemctl restart otelcol-contrib
My app was not found by otel-apps.sh

It finds systemd services in /etc/systemd/system and PM2 processes. A Go binary, a container or an app started by hand: set the environment block yourself. To configure only one service:

terminal
curl -sSL 'https://agent.appstatus.io/otel-apps.sh?arch=host&metrics=none' | sudo ONLY=myapp.service sh
An app runs but sends nothing

Its own EnvironmentFile= sets OTEL_*, NODE_OPTIONS, JAVA_TOOL_OPTIONS or PYTHONPATH and wins over ours — the check names it. A Node app with "type": "module" needs --import instead of --require. Python on the system interpreter (“externally managed”): run it from a virtualenv.

terminal
sudo systemctl cat myapp   # shows its EnvironmentFile= and our drop-in
An app did not come back after the restart

The script rolled it back. Its log says why; the usual cause is a runtime too old for the instrumentation.

terminal
sudo journalctl -u myapp -n 50 --no-pager
401 / 403 or 429

401/403: the key was revoked or mistyped — create a new one and run the command again. 429: the data pool is used up; lower sampling or narrow the ports in Advanced options. Billing shows usage.

Some panels stay empty with eBPF

eBPF does not see the app’s own logs, runtime metrics or exception stack traces. Add the collector method on the same server for those.

Plan limits

  • Trace retention: Free 3 days, Starter 7, Pro 15, Business 30, Enterprise 90.
  • Kept spans count against the monthly data pool (600 bytes each).
Compare plans →

Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.