Skip to content

Add per-run tracing API key support - #2260

Merged
seratch merged 1 commit into
mainfrom
rm/pr2260
Jan 6, 2026
Merged

seratch merged 1 commit into
mainfrom
rm/pr2260

Conversation

@rm-openai

@rm-openai rm-openai commented Jan 5, 2026 •

Copy link
Copy Markdown
Collaborator

Currently tracing uses a fixed global API key for all tracing. This makes it so you can't have different ones with different tracing API keys, despite the fact that LLM calls can actually have different API keys.

This PR (codex written) fixes that. Approach: introduce a TracingConfig passed through RunConfig/voice configs into trace creation, storing a per-run tracing_api_key on traces/spans. The backend exporter now groups batches by each item’s key (falling back to the global key), so mixed runs use the right header. Docs and tests cover the new per-run key flow.

@rm-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

@rm-openai
rm-openai requested a review from seratch January 5, 2026 17:11
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

ℹ️ 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".

@seratch seratch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@seratch
seratch merged commit bc374a0 into main Jan 6, 2026
9 checks passed
@seratch
seratch deleted the rm/pr2260 branch January 6, 2026 02:17
rm-openai pushed a commit that referenced this pull request Jan 6, 2026
This release will include:
- #2260
- #2227
- #2225
- #2235
- #2226
- #2213
- #2243
- #2229
- #2158
- #2214
- #2238

full diff:
v0.6.4...main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants