Limits
What LogDrop accepts per trace request, per ingest key and per project.
The agent keeps every request inside LogDrop's limits on its own. You only need these numbers if you change the agent's settings or plan a large fleet.
| Limit | Value | What happens |
|---|---|---|
| Spans per request | 256 (the agent sends at most 128 by default) | A larger request is refused with 400 |
| Distinct span start minutes per request | 32 | The agent splits a batch by start minute |
| Span start time | At most 5 minutes ahead of LogDrop's clock and at most 7 days old | The agent drops such spans before sending and counts them as rejected. Keep the host clock in sync |
| Request size | 128 KiB, compressed and uncompressed | The request is refused. See LOGDROP_MAX_EXPORT_BATCH_SIZE in Agent settings |
| Attributes | 24 on the resource, 48 per span, 24 per event or link; keys up to 128 bytes, text values up to 2,048 bytes; 16 events and 16 links per span; span names up to 256 bytes | The whole request is refused with 400 |
| Requests | 600 per minute per key, 3,000 per minute per project | 429. The agent retries for a few seconds, then drops the batch |
| Active spans per process | 1,024 (LOGDROP_MAX_ACTIVE_SPANS) | New spans are not recorded until others end. Spans open longer than 15 minutes stop counting |
Sizing a fleet
The request limits count per key and per project, so they decide how many busy containers can share one key and one project.
PHP keeps nothing from one request to the next, so the workers of a container (php-fpm or Apache children, and CLI runs) put their spans in one spool file (on Kubernetes a small volume the trace injector adds) and send it together: about once a second while the container has traffic, and one request per 128 spans when it records more than 128 spans a second. The first request after a quiet second is sent at once. So one key carries about ten busy containers, or about 1,280 spans a second, and one project about fifty containers, or about 6,400 spans a second.
For larger fleets, use one key per workload, or set LOGDROP_SCHEDULE_DELAY=5s: a container with little traffic then sends about twelve requests a minute, and traces appear a few seconds later.
What a burst leaves in the spool (at most its last second) is sent by the container's next request; the kubelet's probes come every few seconds, so on Kubernetes it waits seconds. Outside Kubernetes the spool is in the temporary directory (or LOGDROP_SPOOL_DIR); where neither is writable, each request sends its own spans, and one key then carries about ten requests a second.
.png)