LogDrop
Backend TracingRust

What LogDrop Records

The data a span from the LogDrop Rust crate carries, and what never leaves your service.

The crate removes everything that could carry personal or secret data before a span is queued for sending. What is left describes the shape of a request: which operation ran, where it went, how long it took and whether it failed. It applies the same rules as the Java, Node.js, Python, .NET, Go and PHP agents, tested against the same cases.

What a span carries

A span is one operation: a request your service handles, or a call it makes to a database or another service. Besides its duration and whether it failed, a span carries:

  • Route templates as your router declares them, such as GET /orders/{id}, HTTP methods and status codes.
  • gRPC services, methods and status codes.
  • Error types you record, such as error.type = "PaymentDeclined", or a status code.
  • The hosts and ports your service calls.
  • Database systems, database names and operations.
  • SQL statements only as value-free templates, such as SELECT id, total FROM orders WHERE id = $1: every literal in the statement is replaced by ? before it leaves the process.
  • Your service's identity: service, service group, release, environment and instance.
  • Where it runs: the cluster, namespace, node, workload, pod and container.
  • Custom attributes, only for the keys you list in LOGDROP_ALLOWED_ATTRIBUTE_KEYS.

What is never sent

Request and response headers, cookies, URL paths and query strings, request and response bodies, SQL values, log messages, error messages and stack traces, and the user, password and parameters of DATABASE_URL. Span fields that are not standard and not listed in LOGDROP_ALLOWED_ATTRIBUTE_KEYS stay in the process. Attribute keys that can carry secrets (for example authorization, token or password) are dropped even when you list them. W3C baggage is passed on to the services you call, but never recorded in a span. Command lines and environment variables never leave the process.

The crate sends traces only: it records no metrics and no logs.

What is traced

These rules decide which operations are recorded as spans and which are left out.

  • Every span at INFO level and above is recorded, without sampling, because APM counts calls and errors from the spans it receives. Under very high load the active span limit applies instead. DEBUG and TRACE spans, such as those of HTTP and database libraries, are never recorded.
  • Kubernetes liveness, readiness and startup probes (requests with the User-Agent kube-probe/…) are not traced, together with the spans they cause. Other health checks are.

On this page