wu-sheng opened a new pull request, #13810: URL: https://github.com/apache/skywalking/pull/13810
### Fix Virtual GenAI e2e test broken on master since April 9 - [x] Explain briefly why the bug exists and how to fix it. **Root cause:** On April 9, `opentelemetry-sdk` updated to 1.41.0. The `opentelemetry-bootstrap --action=install` step in the Dockerfile auto-installs `opentelemetry-instrumentation-openai-v2==2.3b0` (the official OTel package), which is **incompatible** with OTel SDK 1.41.0 — it crashes with `TypeError: wrap_function_wrapper() got an unexpected keyword argument 'module'`. This silently kills all GenAI span attribute generation at runtime, so no `VIRTUAL_GENAI` service is ever created. **Fix:** 1. **Remove `opentelemetry-bootstrap --action=install`** — it auto-installs the broken official package that conflicts with the working Traceloop instrumentation. 2. **Pin all Python dependency versions** — prevents future breakage from upstream releases. **Verified locally** that Traceloop `opentelemetry-instrumentation-openai==0.58.0` with OTel SDK 1.41.0 produces all required span attributes: - `gen_ai.response.model` ✅ - `gen_ai.provider.name` ✅ - `gen_ai.usage.input_tokens` ✅ - `gen_ai.usage.output_tokens` ✅ Also includes a minor indentation fix in `pom.xml` (gpg-plugin closing tags). - [ ] Update the [`CHANGES` log](https://github.com/apache/skywalking/blob/master/docs/en/changes/changes.md). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
