Telemetry
Telemetry is off by default and sends data only to a collector you choose.
Drive can send traces, metrics and logs to an OpenTelemetry collector. It stays off until you set both values below. Other settings are in Configuration.
Turn it on
Add these to deploy/.env, then restart the API and worker.
| Variable | Meaning |
|---|---|
DRIVE_OTEL_ENDPOINT |
Required. Collector address, such as https://otel.example.com:4318. OTLP over HTTP only. |
DRIVE_OTEL_TOKEN |
Required. Sent as a bearer token. Use any placeholder, such as none, if the collector needs none. |
DRIVE_OTEL_SIGNALS |
Optional. errors sends only error log lines. Default is traces,metrics,logs. |
If one required value is missing, telemetry stays off and a warning names it.
What is sent
- API: one span per request, with the path reduced to its shape.
- Worker: one span per job and per processing step.
- Request and job metrics.
- Log lines at
infoand above. - With
errors: only error-level log lines.
What is never sent
- Document names and file paths.
- Document text.
- Search terms and query strings.
- Tag and folder names.
- Ids.