LogDrop
Backend Tracing

PHP

Trace PHP services with the LogDrop PHP agent.

LogDrop traces PHP services without code changes. On Kubernetes, one pod annotation adds the LogDrop PHP agent to your pods; your images stay as they are.

The agent is a distribution of the OpenTelemetry PHP Distro with LogDrop's pipeline. It records the requests your service handles and its calls to databases and other services, removes everything that could carry personal or secret data, and sends the spans to LogDrop over HTTPS with a traces ingest key, from a background thread, off the request path. It removes the same data as the Java, Node.js, Python, .NET and Go agents, so a request that crosses services in these languages appears as one trace.

Current release: LogDrop PHP agent 0.1.0-alpha2 (the image registry.logdrop.io/logdrop-php-agent) and Helm chart logdrop-infrastructure 0.1.1-alpha15.

Requirements

Before you install the agent, check that you have the LogDrop project and key, and that your platform, PHP version and libraries are supported.

  • The project, the traces ingest key and the endpoint from Before you start.
  • Kubernetes 1.28 or newer with Helm 3.8 or newer. The agent image 0.1.0-alpha2 runs on linux/amd64 nodes only.
  • PHP 8.1 to 8.5 on Linux, with php-fpm, Apache with mod_php (prefork) or the CLI. Debian-based images (the default) and Alpine images, which need one more pod annotation.
  • Traced libraries: Laravel 6 to 13 (requests with their route, database queries, queue jobs), Slim 4, PDO, MySQLi, PostgreSQL (pgsql), cURL and PSR-18 HTTP clients (Guzzle and Laravel's HTTP client included).
  • Not traced yet: Symfony's routes, and Redis outside Laravel. Their requests and queries are still traced, without a route name.
  • Not supported: a service that runs another APM's PHP extension (for example Datadog, New Relic or Elastic). Pods with another OpenTelemetry PHP setup of their own run untraced by LogDrop.
  • Outside Kubernetes the agent is not packaged in this release.

Install the agent

This release installs the agent on Kubernetes only, with the LogDrop Helm chart.

Reference

These pages hold the details behind the install guide. Use them to change a setting, plan for limits or fix a problem.

On this page