LogDrop
Backend TracingRust

Troubleshooting

LogDrop Rust crate messages and what to do about them.

The crate 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 seeDo this
No [logdrop-agent] line at allThe service does not add logdrop::layer() to its subscriber, or the build does not include it. See Add the crate
[logdrop-agent] INFO LogDrop tracing is disabled: LOGDROP_ENDPOINT is not set.On Kubernetes: the pod has no logdrop.io/trace: rust annotation, its trace-status is skipped: …, or the chart is older than 0.1.1-alpha15. Elsewhere: set the settings
trace-status: skipped: unsupported language on a rust podThe installed chart is older than 0.1.1-alpha15 and does not know Rust. Upgrade the chart and roll the pod
trace-status: skipped: …Fix the named reason (see Check it) and roll the pod
No trace-status annotationThe 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
ERROR LogDrop tracing is disabled: the library could not start.Contact LogDrop support with the Rust 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 restart
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; outside Kubernetes, the key file is missing or unreadable
LogDrop ingest key file is missing or invalid; the last valid key is still used.The key file changed to something unreadable. The crate 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 or DNS). The crate does not use an HTTP proxy. Before it warns, it 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 crate. 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 crate 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 are never closed, such as a span kept in a long-lived struct
Requests appear, but outgoing calls are missing, or show up as separate tracesThe client is not built with the middleware (Add the crate), or the call runs in a task spawned without the request's span (.instrument(span))
Database statements are missingA filter on the whole subscriber hides DEBUG events of sqlx::query: filter the log layer instead (Filters). A pool built with log_statements(LevelFilter::Off) reports no statements
Database calls show the system other_sql and no addressDATABASE_URL is not set in the service's environment
Requests appear without a route (only GET)The axum layer is outside the router; add it with Router::layer
The last spans of a short job are missingmain exits through std::process::exit, which skips ShutdownGuard. Call logdrop::shutdown() or logdrop::flush(timeout) before it
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 nothing shows up in the panel, check these in order:

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

On this page