experimental_telemetry metadata removed during LLM refactor #5274

Closed
opened 2026-02-16 17:50:48 -05:00 by yindo · 0 comments
Owner

Originally created by @Raviguntakala on GitHub (Jan 13, 2026).

Originally assigned to: @thdxr on GitHub.

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

Originally created by @Raviguntakala on GitHub (Jan 13, 2026). Originally assigned to: @thdxr on GitHub. ### 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](cci:7://file:///Users/raviguntakala/Desktop/opencode/packages/opencode/src/session/llm.ts:0:0-0:0) 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_
yindo added the bug label 2026-02-16 17:50:48 -05:00
yindo closed this issue 2026-02-16 17:50:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#5274