Version: 1.111.0-insider (user setup)
Commit: de052c15eaefaceaa5b673081e2834f1cdf193db
Date: 2026-03-05T17:35:21-08:00
Electron: 39.6.0
ElectronBuildId: 13330601
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
Steps to Reproduce:
- Enable OpenTelemetry and point it at the standalone Aspire dashboard
- Use different models (i.e. Opus) to perform operations
- View traces in Aspire dashboard
- See error:

This happens because VS Code is using raw JSON sent to model as telemetry message JSON. Doing this is wrong because model JSON and OTEL JSON don't necessarily have the same schema.
Problematic part from the error:
https://github.com/open-telemetry/semantic-conventions/blob/eb570b1cf053df130f18ce4ccde6c2896fcafad1/docs/gen-ai/gen-ai-input-messages.json#L276-L280
And Anthropic's tool_use type should map to OTEL's toolcallrequestpart, and tool_result should map to toolcallresponsepart.
This issue might be true for other models.
cc @zhichli
Steps to Reproduce:
This happens because VS Code is using raw JSON sent to model as telemetry message JSON. Doing this is wrong because model JSON and OTEL JSON don't necessarily have the same schema.
Problematic part from the error:
https://github.com/open-telemetry/semantic-conventions/blob/eb570b1cf053df130f18ce4ccde6c2896fcafad1/docs/gen-ai/gen-ai-input-messages.json#L276-L280
And Anthropic's tool_use type should map to OTEL's toolcallrequestpart, and tool_result should map to toolcallresponsepart.
This issue might be true for other models.
cc @zhichli