pub fn init_with_opentelemetry(log_name: &str, otlp_endpoint: Option<&str>)Expand description
Initializes tracing with OpenTelemetry OTLP exporter.
Exports traces using the OTLP protocol to any OpenTelemetry-compatible backend.
Requires the opentelemetry feature.
Only enables OpenTelemetry if LINERA_OTLP_EXPORTER_ENDPOINT env var is set.
This prevents DNS errors in environments where OpenTelemetry is not deployed.