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-alpha2runs 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.
Agent settings
Every LOGDROP_* setting, its default and its range.
Limits
What LogDrop accepts per request, per key and per project, and how PHP workers batch their spans.
Rotate the ingest key
Replace a key without losing traces.
What LogDrop records
The data a span carries, and what never leaves your service.
Verify what you install
Check the signatures of the agent image and the chart.
Licences
The licences of the agent's parts.
Troubleshooting
Agent messages and what to do about them.
.png)