Skip to content

Copilot chat OTel instruction message JSON doesn't follow the standard #299931

@JamesNK

Description

@JamesNK
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:

  1. Enable OpenTelemetry and point it at the standalone Aspire dashboard
  2. Use different models (i.e. Opus) to perform operations
  3. View traces in Aspire dashboard
  4. See error: Image

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugchat-agentinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions