The goal of this specification is to unify the environment variable names between different OpenTelemetry SDK implementations. SDKs MAY choose to allow configuration via the environment variables in this specification, but are not required to. If they do, they SHOULD use the names listed in this document.
Name | Description | Default | Notes |
---|---|---|---|
OTEL_RESOURCE_ATTRIBUTES | Key-value pairs to be used as resource attributes | See Resource SDK for more details. | |
OTEL_LOG_LEVEL | Log level used by the SDK logger | "info" | |
OTEL_PROPAGATORS | Propagators to be used as a comma separated list | "tracecontext,baggage" |
Known values for OTEL_PROPAGATORS are: "tracecontext", "baggage", "b3", "jaeger"
Name | Description | Default | Notes |
---|---|---|---|
OTEL_BSP_SCHEDULE_DELAY_MILLIS | Delay interval between two consecutive exports | 5000 | |
OTEL_BSP_EXPORT_TIMEOUT_MILLIS | Maximum allowed time to export data | 30000 | |
OTEL_BSP_MAX_QUEUE_SIZE | Maximum queue size | 2048 | |
OTEL_BSP_MAX_EXPORT_BATCH_SIZE | Maximum batch size | 512 | Must be less than or equal to OTEL_BSP_MAX_QUEUE_SIZE |
See OpenTelemetry Protocol Exporter Configuration Options.
Name | Description | Default |
---|---|---|
OTEL_EXPORTER_JAEGER_AGENT_HOST | Hostname for the Jaeger agent | "localhost" |
OTEL_EXPORTER_JAEGER_AGENT_PORT | Port for the Jaeger agent | 6832 |
OTEL_EXPORTER_JAEGER_ENDPOINT | HTTP endpoint for Jaeger traces | "http://localhost:14250" |
OTEL_EXPORTER_JAEGER_USER | Username to be used for HTTP basic authentication | - |
OTEL_EXPORTER_JAEGER_PASSWORD | Password to be used for HTTP basic authentication | - |
Name | Description | Default |
---|---|---|
OTEL_EXPORTER_ZIPKIN_ENDPOINT | Endpoint for Zipkin traces | "http://localhost:9411/api/v2/spans" |
Name | Description | Default |
---|---|---|
OTEL_EXPORTER | Exporter to be used, can be a comma-separated list to use multiple exporters | "otlp" |
Known values for OTEL_EXPORTER are: "otlp", "jaeger", "zipkin", "prometheus", "otlp_span", "otlp_metric".
Note: "otlp" is equivalent to "otlp_span,otlp_metric".
To ensure consistent naming across projects, this specification recommends that language specific environment variables are formed using the following convention:
OTEL_{LANGUAGE}_{FEATURE}