Skip to content

fix(opik): mark generate_name traces as internal - #45378

Open
alexrain wants to merge 1 commit into
langgenius:mainfrom
alexrain:fix/opik-generate-name-internal
Open

alexrain wants to merge 1 commit into
langgenius:mainfrom
alexrain:fix/opik-generate-name-internal

Conversation

@alexrain

@alexrain alexrain commented Nov 3, 2026

Copy link
Copy Markdown

Fixes #44441.

Opik keeps a trace in its thread when it has the same thread_id as the conversation, but it cannot tell that generate_name is an internal title-generation call. The provider now sets metadata._opik.is_internal = true on those traces while keeping the thread id, so the title call stays available for token attribution without appearing as a user turn. Added a regression test.

@github-actions github-actions Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Opik tracing] Conversation-title trace (generate_name) shows up as a chat turn in Opik threads

1 participant