Environment Variables
| Variable | Default | Description |
|---|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT | (required) | OTLP endpoint URL, e.g. http://localhost:4318 |
OTEL_EXPORTER_OTLP_HEADERS | Auth headers in key=val,key2=val2 format | |
OTEL_EXPORTER_OTLP_PROTOCOL | grpc | grpc or http/protobuf |
OTEL_SERVICE_NAME | default | Service name attached to all metrics |
OTEL_RESOURCE_ATTRIBUTES | deployment.environment=default | Resource attributes in key=val,key=val format |
OTEL_METRIC_EXPORT_INTERVAL | 60000 | Metric polling interval in milliseconds |
OTEL_GPU_EBPF_ENABLED | false | Enable eBPF CUDA kernel tracing (Linux only) |
Common configurations
Minimal — send to a local OTel Collector
Production — with service name, environment, and auth header
HTTP/protobuf instead of gRPC
Enable eBPF CUDA tracing
RequiresCAP_BPF + CAP_PERFMON (or root) and NVIDIA CUDA runtime.
Notes
OTEL_METRIC_EXPORT_INTERVALis in milliseconds per the OTel spec. For a 30-second interval, set30000.deployment.environmentis extracted fromOTEL_RESOURCE_ATTRIBUTESand attached as a resource attribute. Any key-value pairs inOTEL_RESOURCE_ATTRIBUTESare also forwarded to the OTel SDK resource viaresource.WithFromEnv().- If
OTEL_EXPORTER_OTLP_ENDPOINTis not set, the collector starts but no metrics are exported. Check the logs for a warning.

