Backend TracingJava
Troubleshooting
LogDrop Java 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, 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 |
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 JAVA_TOOL_OPTIONS after the injector (an image ENV does not; a wrapper script that sets it does), or the process is not a JVM |
[logdrop-agent] ERROR LogDrop tracing is disabled: … | The named setting is invalid. Fix it and restart |
[logdrop-agent] 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 (a name that does not resolve is looked up again after about 10 and 20 seconds), so a few seconds of network or DNS set-up while a pod starts lose nothing. A request that timed out after it was sent is resent once |
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.exportStatus() |
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 |
| 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 table did not point to the cause, check each of these:
- 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)