LogDrop
Backend TracingGo

Troubleshooting

LogDrop Go package messages and what to do about them.

The package 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 call logdrop.Start, or the build does not include it. See Add the package
[logdrop-agent] INFO LogDrop tracing is disabled: LOGDROP_ENDPOINT is not set.On Kubernetes: the pod has no logdrop.io/trace: go annotation, its trace-status is skipped: …, or the chart is older than 0.1.1-alpha13. Elsewhere: set the settings
trace-status: skipped: unsupported language on a go podThe installed chart is older than 0.1.1-alpha13 and does not know Go. 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 application sets its own OpenTelemetry tracer provider.The service sets up OpenTelemetry itself (otel.SetTracerProvider) before logdrop.Start. Remove that set-up, or do not use the LogDrop package in this service
ERROR LogDrop tracing is disabled: the agent could not start.Contact LogDrop support with the Go 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 package 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 package 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 package. 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 package 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 custom spans that are never ended
Requests appear, but database, Redis or outgoing calls are missing, or show up as separate tracesThe library is not wrapped (Add the package), or the call does not get the request's context.Context. pgx queries are recorded only inside a request or a custom span
Requests appear without a route (only GET)With chi, the middleware must be inside the router; with other routers, use their line from Add the package
The last spans of a short job are missingmain exits through os.Exit or log.Fatal, which skips the deferred call. 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 package 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