RootTrace

RootTrace / Integrations / PHP APM

APM & OpenTelemetry

PHP APM that flushes when the request ends.

Build the wrapper from apm/php in this repository. It aggregates metrics, transactions, errors, and trace samples in memory and posts one payload as the request finishes.

What RootTrace watches

Every reading is checked continuously; bad readings become grouped issues with the evidence attached. RootTrace also remembers whether it has seen the same incident before.

Warn and fail thresholds, prefilled

Sensible defaults out of the box, overridable per host with environment variables. No threshold spreadsheet required on day one.

Setup

php apm setup
# No Composer package is published. Use the source under apm/php in this repository.

Outbound HTTPS only: the wrapper aggregates in memory and posts to the API; nothing listens on your hosts and nothing touches production.

The PHP wrapper is a source-only reference implementation.

Questions, answered honestly

Does it work under FPM?

Yes. The flush-at-request-end model is built for FPM and similar lifecycles, where a background flusher thread is not an option.

Is this safe to run next to production?

The collector is read-only by architecture, not by policy: there is no write path, no remediation executor, and no privileged mode to switch on. It sends short-lived outbound HTTPS requests, opens no inbound ports, and redacts credential-like evidence before anything leaves the host.

Do I need a separate agent for this?

No. One RootTrace collector per host covers every integration on this site: databases, web servers, containers, endpoints, and the Linux host itself, all from one signed package or container. You point it at targets with environment variables; there is nothing else to deploy.

Free on 5 hosts. Live in minutes.

Create a workspace, install one collector, and watch issues explain themselves.