Skip to content

feat(tracing): separate plugin and bt span origin versions - #153

Merged
Andrew Kent (realark) merged 1 commit into
mainfrom
ark/plugin-bt-span-origin
Oct 7, 2026
Merged

Andrew Kent (realark) merged 1 commit into
mainfrom
ark/plugin-bt-span-origin

Conversation

@realark

@realark Andrew Kent (realark) commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator
  • capture origin info for tracing plugins. goal is to capture both the hooks version and bt version
  • also capture the version of the coding agent itself
  • runs on root and turn spans

format:

{
  "context": {
    "span_origin": {
      "name": "braintrust.plugin.codex",
      "version": "1.2.3",
      "bt": { "version": "4.5.6" },
      "codex": { "version": "0.123.0" }
    }
  }
}

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T20:24:43.868500Z d0dfbee Draft marked ready
ℹ️ About Codex in GitHub

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

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: c58cb82a1d

ℹ️ 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 (@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 (@codex) address that feedback".

Comment thread bt-daemon/src/sink/braintrust.rs Outdated
@realark
Andrew Kent (realark) marked this pull request as draft October 6, 2026 19:48
Comment thread bt-daemon/tests/braintrust_sink.rs Dismissed
@realark
Andrew Kent (realark) marked this pull request as ready for review October 6, 2026 20:20

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

Copy link
Copy Markdown

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: d0dfbee228

ℹ️ 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 (@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 (@codex) address that feedback".

Comment thread bt-daemon/src/delivery_ledger.rs Outdated

@Qard Stephen Belanger (Qard) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is it intentional that this only captures span_origin at session creation? That means we lose possibly useful information indicating if a coding agent has been upgraded mid-session.

This otherwise LGTM, but just want to be sure that loss of detail is intentional?

Comment thread bt-daemon/src/translate/mod.rs Outdated
@realark
Andrew Kent (realark) merged commit afa194e into main Oct 7, 2026
22 checks passed
@realark
Andrew Kent (realark) deleted the ark/plugin-bt-span-origin branch October 7, 2026 20:42
@AbhiPrasad

Copy link
Copy Markdown
Member

we should have made sure we merged in braintrustdata/braintrust-sdk-rust#109 and pointed to a commit on main before merging this.

Abhijeet Prasad (AbhiPrasad) pushed a commit to braintrustdata/braintrust-sdk-rust that referenced this pull request Oct 9, 2026
## Change
Add `SpanLogBuilder::skip_span_origin()` to omit SDK-generated origin
fields while retaining explicit and propagated context. The option
persists through later handle logs and end; existing defaults are
unchanged.

Needed by braintrustdata/braintrust-coding-agent-plugins#153: legacy
delivery ledgers have no origin snapshot, so late updates must preserve
backend provenance rather than stamp SDK defaults or invent historical
versions.

## Verification
- Rust SDK suite: 215 passed, 5 ignored.
- Clippy all targets with warnings denied: passed.
- Daemon HTTP smoke: legacy merge delivered output/end timing without
context/span_origin.
- Daemon sink and provenance regression targets: 19 passed, including
legacy ledgers across restarts and attached-parent context.

---------

Co-authored-by: Stephen Belanger <stephen.belanger@braintrustdata.com>
Co-authored-by: Stephen Belanger <admin@stephenbelanger.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants