[Bug]: OTel v2 GenAI exception events are never exported — Event body defaults to None, and the OTLP encoder drops the whole batch
![[Bug]: OTel v2 GenAI exception events are never exported — Event body defaults to None, and the OTLP encoder drops the whole batch](https://www.chat-gpts.plus/wp-content/uploads/2026/09/36863-127825f4-768x403.jpg)
当 LiteLLM 开启 OTel v2( LITELLM_OTEL_V2=true )并启用事件导出时, gen_ai.client.operation.exception 事件因 Event.body 默认为 None ,导致 OTLP 编码器在序列化时抛异常,整批日志被静默丢弃。排查重点是 v








