Skip to content

feat: add session source as otel metadata tag#9720

Merged
alexsong-oai merged 4 commits intomainfrom
alexsong/user-label
Jan 23, 2026
Merged

feat: add session source as otel metadata tag#9720
alexsong-oai merged 4 commits intomainfrom
alexsong/user-label

Conversation

@alexsong-oai
Copy link
Contributor

@alexsong-oai alexsong-oai commented Jan 22, 2026

Add session_source as global OTEL metric tags to identify client surface

@alexsong-oai alexsong-oai added the oai PRs contributed by OpenAI employees label Jan 22, 2026
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ff0e87555f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@alexsong-oai alexsong-oai changed the title feat: add user id, email and session source as otel metadata tag feat: add user id and session source as otel metadata tag Jan 22, 2026
Self::push_metadata_tag(&mut tags, "auth_mode", self.metadata.auth_mode.as_deref())?;
Self::push_metadata_tag(
&mut tags,
"session.source",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer just session_source

@alexsong-oai alexsong-oai changed the title feat: add user id and session source as otel metadata tag feat: add session source as otel metadata tag Jan 23, 2026
@alexsong-oai alexsong-oai merged commit 0fa45fb into main Jan 23, 2026
51 of 53 checks passed
@alexsong-oai alexsong-oai deleted the alexsong/user-label branch January 23, 2026 02:46
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants