LogDrop
Backend TracingGo

Settings

Every LOGDROP_* setting of the LogDrop Go package, with its default and range.

The LogDrop Go package is configured only with LOGDROP_* environment variables, the same settings as the other LogDrop agents. On Kubernetes the trace injector sets the required ones for you. The package reads them once, in logdrop.Start.

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
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 package off
LOGDROP_DEBUGfalseDiagnostics 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 LOGDROP_* 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 service always runs; only tracing is off.

OpenTelemetry settings

OpenTelemetry's own settings (OTEL_* variables) have no effect on what the package sends: it always exports to LogDrop, never samples, propagates W3C trace context and baggage, never captures headers and sends only LogDrop's resource attributes. Configure it with LOGDROP_* only.

On this page