opencode icon indicating copy to clipboard operation
opencode copied to clipboard

experimental_telemetry metadata removed during LLM refactor

Open Raviguntakala opened this issue 2 days ago • 1 comments

Description

The userId and sessionId metadata added in #5279 was removed during the LLM code rework.

What happened:

  • PR #5279 added userId and sessionId to experimental_telemetry.metadata for session-level trace grouping
  • During subsequent LLM refactoring, the llm.ts file was rewritten and lost the metadata fields
  • Only isEnabled remains, breaking trace grouping in observability platforms

Expected behavior: experimental_telemetry should include metadata.userId and metadata.sessionId in all AI SDK calls.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Raviguntakala avatar Jan 13 '26 11:01 Raviguntakala