OpenTelemetry Support
Using OpenTelemetry to collect performance signals
Overview
The Form.io Enterprise Platform supports OpenTelemetry to collect signals (traces, metrics, and logs). It functions on both the Enterprise Server and the PDF Server.
OpenTelemetry is disabled by default and will not collect any information until the environment has been configured and the endpoint has been established.
Once enabled, the server exports signals over OTLP to any standard OpenTelemetry Collector or compatible endpoint.
Logs, Traces, and Metrics
Unless separately enabled, telemetry will not collect server logs. Logging includes the entire application log stream in addition to the telemetry-related information.
Enabling telemetry
Setting any of the endpoint variables below turns telemetry on.
Variable
Effect
OTEL_EXPORTER_OTLP_ENDPOINT
Sets the OTLP collector base URL and enables telemtry. By default it will only collect traces and metrics. Logs are enabled separately.
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
Enables telemetry as a traces-only collector. Metrics and logs stay off unless separately enabled.
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
Enables telemetry as a metrics-only collector. Traces and logs stay off unless separately enabled.
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
Defines a logs-only or split collector endpoint. FORMIO_OTEL_LOGS_ENABLED must also be enabled.
FORMIO_OTEL_LOGS_ENABLED=true
Required opt-in for the logs signal.
An endpoint alone never turns logs on, because the logger auto-instrumentation forwards your entire application log stream, not just telemetry-relevant lines. With the flag set, logs go to the logs endpoint or, failing that, the general one.
OTEL_SERVICE_NAME
Overrides the default reported service name (formio-server or pdf-server).
OTEL_SDK_DISABLED=true
Kill switch — keeps telemetry off even when an endpoint is configured.
Each signal is exported only once the endpoint is defined, either individually or through the genral OTEL_EXPORTER_OTLP_ENDPOINT. Sgnals with no endpoint are ignored, rather than defaulting to http://localhost:4318.
Additional configuration variables
All standard OTEL_* variables (protocol, headers, sampling, export interval, etc.) are handled by the OpenTelemetry SDK itself.
Refer to the OpenTelemetry SDK environment variable reference for additional inforation.
Last updated
Was this helpful?
