Backend TracingPython
Troubleshooting
LogDrop Python agent messages and what to do about them.
The agent writes its messages to standard error with the prefix [logdrop-agent]. Each warning is logged at most once a minute per process, and no message ever contains the ingest key.
Set LOGDROP_DEBUG=true for more detail. It never prints the key or span contents.
| You see | Do this |
|---|---|
trace-status: skipped: … | Fix the named reason (see Check it) and roll the pod |
trace-status: skipped: unsupported language on a python pod | The installed chart is older than 0.1.1-alpha11 and does not know Python. Upgrade the chart and roll the pod |
No trace-status annotation and no [logdrop-agent] line | The 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 |
trace-status: injected but no [logdrop-agent] line | Something replaced PYTHONPATH after the injector (a wrapper script that sets it), or Python runs with -I, -E or -S, or the container's process is not Python |
ModuleNotFoundError for your own modules after you opted in | Your image sets PYTHONPATH in its Dockerfile, and the injector's value replaced it. Set the same value in the container's env (Kubernetes, step 3) |
LogDrop tracing is disabled: Python … is not supported (3.10 or newer is). | Move the service to Python 3.10 or newer. Until then it runs untraced |
ERROR LogDrop tracing is disabled: the application installs its own OpenTelemetry SDK …, … is newer than the agent's … or … does not fit the agent … | See Your packages and the agent's. The service runs untraced |
ERROR LogDrop tracing is disabled: the agent could not start. | Contact LogDrop support with the Python version and, with LOGDROP_DEBUG=true, the lines that follow |
[logdrop-agent] ERROR LogDrop tracing is disabled: … naming a setting | The named setting is invalid. Fix it and restart |
[logdrop-agent] INFO LogDrop tracing is disabled: LOGDROP_ENDPOINT is not set. | Set the endpoint (on Kubernetes: 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 (or your key file) 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 |
LogDrop rejected the ingest key (HTTP 401). | The 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 |
LogDrop refused traces for this project (HTTP 403). | Turn on HTTP Logging for the project, and check that its plan includes HTTP monitoring and that the project is not disabled |
LogDrop rate-limited trace export (HTTP 429). | Too many requests for the key or the project (see Limits), or the project's trace storage is used up. Those batches are dropped |
LogDrop is not reachable. Trace export failed. | Egress to the traces endpoint is blocked (NetworkPolicy, firewall, proxy or DNS). Before it warns, the agent resends a batch that could not connect for about 20 seconds, so a few seconds of network set-up while a pod starts lose nothing |
LogDrop refused a trace batch as invalid (HTTP 400). | Usually a clock far off (spans that start more than 5 minutes ahead), a LOGDROP_MAX_* setting above LogDrop's limits, or an outdated agent. The batch is dropped and counted as rejected in LogDrop.export_status() |
LogDrop rejected trace export (HTTP <code>). | Any other answer. For 502, 503 and 504 the agent has already retried for a few seconds. If it persists, contact LogDrop support with the time and the code |
LogDrop active span limit reached. New spans are being refused. | More than LOGDROP_MAX_ACTIVE_SPANS spans are open at once, often spans that custom code never ends |
| Requests appear without a route, or database spans are missing | The framework or the database driver is not in the traced libraries |
| A trace is in Trace Explorer, but the service is missing in APM | APM 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 agent logs none of the messages above, go through this checklist.
- The project's plan includes HTTP monitoring, and HTTP Logging is on.
- The agent uses a key with the Traces signal whose status is Active.
- The agent reports success:
logdrop.io/trace-status: injectedand its start line (Check it). - The panel's time range covers the request, and the Environment filter matches (the agent's default is
production). - The agent's log shows no refusal from the table above.
.png)