LogDrop
Backend TracingPHP

Troubleshooting

LogDrop PHP agent messages and what to do about them.

The agent writes its own messages to standard error with the prefix [logdrop-agent], once per PHP worker process, and no message ever contains the ingest key. Refusals from LogDrop come from the sender the agent is built on, with the prefix [OTEL].

Set LOGDROP_DEBUG=true for more detail. It never prints the key or span contents. Under php-fpm, worker output reaches the container log when catch_workers_output = yes (the default of the official images).

You seeDo this
trace-status: skipped: …Fix the named reason (see Check it) and roll the pod
trace-status: skipped: unsupported language on a php podThe installed chart is older than 0.1.1-alpha14 and does not know PHP. Upgrade the chart and roll the pod
No trace-status annotation and no [logdrop-agent] lineThe webhook did not see the pod. Check tracing.namespaces, the pod label when requirePodLabel is true, that the injector pod is running, and that networkPolicy.apiServerCIDRs (or tracing.injector.sourceCIDRs and sourcePeers) cover the addresses the control plane calls from. Then roll the pod
PHP Warning: PHP Startup: Unable to load dynamic library '/logdrop-agent/php/opentelemetry_php_distro_loader.so'The agent does not match the image's C library: an Alpine image without logdrop.io/libc: musl, or a Debian or Ubuntu image with it (Kubernetes, step 3). Fix the annotation and roll the pod. The service runs untraced until then
trace-status: injected but no [logdrop-agent] linePHP did not read the agent's ini: something replaced PHP_INI_SCAN_DIR after the injector (a start script, or an ENV in the image when the container sets none), or the container's process is not PHP. Check with php --ini in the container
ERROR LogDrop tracing is disabled: the agent could not start.Contact LogDrop support with the PHP version and, with LOGDROP_DEBUG=true, the lines that follow
[logdrop-agent] ERROR LogDrop tracing is disabled: … naming a settingThe named setting is invalid. Fix it and roll the pod
[logdrop-agent] INFO LogDrop tracing is disabled: LOGDROP_ENDPOINT is not set.Set the endpoint (tracing.endpoint)
LogDrop ingest key file is missing or invalid; traces are not sent until it is readable. or LogDrop ingest key is not available. Trace export skipped.The Secret logdrop-trace-ingest-key is missing in that namespace, or empty
LogDrop ingest key file is missing or invalid; the last valid key is still used.The key file changed to something unreadable. The agent keeps the previous key until you fix it
[OTEL] … server returned with code 401The key is revoked, expired, mistyped or not a traces key, or the Secret holds more than one key, for example a key pasted twice. A traces key starts with ldtk_ and has 71 characters; recreate the Secret with the command in Kubernetes, step 1
[OTEL] … server returned with code 403Turn on HTTP Logging for the project, and check that its plan includes HTTP monitoring and that the project is not disabled
[OTEL] … server returned with code 429Too many requests for the key or the project (see Limits), or the project's trace storage is used up
[OTEL] … server returned with code 400Usually a clock far off (spans that start more than 5 minutes ahead) or a LOGDROP_MAX_* setting above LogDrop's limits. The batch is dropped
[OTEL] … sendPayload failed: Timeout was reached or Could not resolve hostEgress to the traces endpoint is blocked (NetworkPolicy, firewall, proxy or DNS). The sender retries a few times in the background; your requests are not slowed down
LogDrop could not use its spool in the temporary directory; each request is sent on its own.Outside Kubernetes: make the temporary directory (or LOGDROP_SPOOL_DIR) writable for the PHP user. Without the spool, a busy service can reach the request rate per key
LogDrop active span limit reached. New spans are being refused.More than LOGDROP_MAX_ACTIVE_SPANS spans are open at once in one PHP process, for example in a long-running worker whose spans never end
Requests appear as GET without a routeOnly Laravel's requests carry a route. Other frameworks' requests are named by their method, never by their path
A trace is in Trace Explorer, but the service is missing in APMAPM shows a new service within about two minutes; refresh. Check the time range and the Environment filter

Still nothing in the panel

If no trace appears and the container log shows none of the messages above, go through this checklist.

  1. The project's plan includes HTTP monitoring, and HTTP Logging is on.
  2. The agent uses a key with the Traces signal whose status is Active.
  3. The agent reports success: logdrop.io/trace-status: injected and its start line (Check it).
  4. The panel's time range covers the request, and the Environment filter matches (the agent's default is production).
  5. The container log shows no [OTEL] refusal from the table above.

On this page