LogDrop
Backend TracingJava

Agent Settings

Every LOGDROP_* setting of the LogDrop Java agent, with its default and range.

The LogDrop Java agent is configured only with LOGDROP_* environment variables. On Kubernetes the trace injector sets the required ones for you; outside Kubernetes you set them yourself.

SettingDefaultMeaning
LOGDROP_ENDPOINTnoneThe traces endpoint, https://otel.logdrop.io. HTTPS, without credentials, query or fragment. Empty turns tracing off
LOGDROP_INGEST_KEY_FILE / LOGDROP_INGEST_KEYnoneThe traces ingest key, from a file (re-read every 10 seconds) or from a variable. Set one, not both
LOGDROP_SERVICEnone, requiredService name
LOGDROP_SERVICE_NAMESPACEemptyService group in APM
LOGDROP_ENVIRONMENTproductionEnvironment
LOGDROP_RELEASEemptyRelease or version of your service
LOGDROP_SERVICE_INSTANCE_IDOn Kubernetes stable per pod and container, so restarts keep it; elsewhere new for each processInstance ID in APM. Outside Kubernetes, set a stable value if restarts should count as the same instance
LOGDROP_ALLOWED_ATTRIBUTE_KEYSemptyComma-separated custom attribute keys to send, at most 128
LOGDROP_CA_FILEemptyA PEM file with a private CA, at most 1 MiB. Only needed for an on-premises LogDrop installation with its own CA
LOGDROP_ENABLEDtruefalse turns the agent off
LOGDROP_DEBUGfalseAgent diagnostics on standard error. They never include the ingest key or span contents
LOGDROP_MAX_ATTRIBUTES24Attributes kept per span, and per event and link (1 to 128). LogDrop refuses more than 48 per span and more than 24 per event or link, so raise it only for spans without events and links, and never above 48
LOGDROP_MAX_EVENTS, LOGDROP_MAX_LINKS16, 16Events and links per span (1 to 128). Keep them at 16 or less: LogDrop refuses more
LOGDROP_MAX_STRING_LENGTH256Characters per text value (1 to 4,096). Keep it at 512 or less: LogDrop refuses values over 2,048 bytes
LOGDROP_MAX_ACTIVE_SPANS1,024Spans open at the same time (1 to 100,000). New spans are not recorded while the limit is reached
LOGDROP_MAX_QUEUE_SIZE2,048Spans waiting to be sent (1 to 65,536). New spans are dropped while the queue is full
LOGDROP_MAX_EXPORT_BATCH_SIZE128Spans per request (1 to 256, and at most the queue size). Lower it to 64 if your spans carry many long custom attributes
LOGDROP_SCHEDULE_DELAY1sHow long spans wait before a request is sent (10ms to 5s)
LOGDROP_EXPORT_TIMEOUT5sTimeout per request (100ms to 30s)
LOGDROP_COMPRESSIONgzipgzip or none

Durations are a whole number followed by ms or s, for example 200ms or 5s. The values of LOGDROP_SERVICE, LOGDROP_SERVICE_NAMESPACE, LOGDROP_ENVIRONMENT, LOGDROP_RELEASE and LOGDROP_SERVICE_INSTANCE_ID are at most 128 characters, without control characters.

On Kubernetes

The trace injector sets the endpoint, the key file, the service, the service group, the environment, the release and the pod's identity from the chart values and the pod's annotations. Variables you set on the container win over the injected ones. See Kubernetes.

Invalid settings

An invalid setting turns recording off with one line on standard error that names the setting, never its value:

[logdrop-agent] ERROR LogDrop tracing is disabled: LOGDROP_SERVICE is required.

The application always runs; only tracing is off.

OpenTelemetry settings

OpenTelemetry's own exporter, endpoint, sampler, propagator, header-capture and resource settings (OTEL_* variables and -Dotel.* properties) have no effect on the agent: it always exports to LogDrop, never samples, propagates W3C trace context and never captures headers. Configure it with LOGDROP_* only.

On this page