LogDrop
Backend TracingPython

What LogDrop Records

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

The agent 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 and Node.js agents.

What a span carries

A span records one operation of your service, such as a request it handles or a query it sends, with its timing and result. The spans of one request across your services form a trace. Each span the agent sends can carry:

  • Route templates such as GET /orders/{order_id} (Django: GET orders/<int:order_id>), HTTP methods and status codes.
  • Error types, for example an exception class or a status code.
  • The hosts and ports your service calls.
  • Database systems, database names and operations; messaging systems, operations and destinations; RPC operation names.
  • SQL statements only as value-free templates, such as SELECT id, total FROM orders WHERE id = %s: every literal in the statement is replaced by ? before it leaves the process.
  • Redis command names, such as GET or INCRBY, never their keys or values.
  • Your service's identity: service, service group, release, environment and instance.
  • Where it runs: on Kubernetes the cluster, namespace, node, workload, pod and container; outside containers the host ID and host name.
  • Custom attributes, only for the keys you list in LOGDROP_ALLOWED_ATTRIBUTE_KEYS.

What is never sent

Request and response headers, cookies, full URLs and query strings, request and response bodies, SQL values, Redis keys, message bodies, exception messages and tracebacks. 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 agent sends traces only: it collects no logs and no metrics.

What is traced

These rules decide which operations the agent turns into spans.

  • Every span 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.
  • Kubernetes liveness, readiness and startup probes (requests with the User-Agent kube-probe/…) are not traced. Other health checks are.
  • One server span per request: FastAPI's internal ASGI send and receive steps record no spans of their own.
  • SQLAlchemy queries are recorded once, by their database driver.

On this page